<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: DSPI Peripheral driver</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__dspi__driver.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">DSPI Peripheral driver<div class="ingroups"><a class="el" href="group___serial.html">Peripheral Interface (SPI)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for DSPI Peripheral driver:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="group__dspi__driver.svg" width="340" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structdspi__command__data__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a></td></tr>
<tr class="memdesc:structdspi__command__data__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master command date configuration used for SPIx_PUSHR.  <a href="group__dspi__driver.html#structdspi__command__data__config__t">More...</a><br /></td></tr>
<tr class="separator:structdspi__command__data__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structdspi__master__ctar__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#structdspi__master__ctar__config__t">dspi_master_ctar_config_t</a></td></tr>
<tr class="memdesc:structdspi__master__ctar__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master ctar config structure.  <a href="group__dspi__driver.html#structdspi__master__ctar__config__t">More...</a><br /></td></tr>
<tr class="separator:structdspi__master__ctar__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structdspi__master__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#structdspi__master__config__t">dspi_master_config_t</a></td></tr>
<tr class="memdesc:structdspi__master__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master config structure.  <a href="group__dspi__driver.html#structdspi__master__config__t">More...</a><br /></td></tr>
<tr class="separator:structdspi__master__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structdspi__slave__ctar__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#structdspi__slave__ctar__config__t">dspi_slave_ctar_config_t</a></td></tr>
<tr class="memdesc:structdspi__slave__ctar__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI slave ctar configuration structure.  <a href="group__dspi__driver.html#structdspi__slave__ctar__config__t">More...</a><br /></td></tr>
<tr class="separator:structdspi__slave__ctar__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structdspi__slave__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#structdspi__slave__config__t">dspi_slave_config_t</a></td></tr>
<tr class="memdesc:structdspi__slave__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI slave configuration structure.  <a href="group__dspi__driver.html#structdspi__slave__config__t">More...</a><br /></td></tr>
<tr class="separator:structdspi__slave__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structdspi__transfer__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#structdspi__transfer__t">dspi_transfer_t</a></td></tr>
<tr class="memdesc:structdspi__transfer__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master/slave transfer structure.  <a href="group__dspi__driver.html#structdspi__transfer__t">More...</a><br /></td></tr>
<tr class="separator:structdspi__transfer__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:struct__dspi__master__handle"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#struct__dspi__master__handle">dspi_master_handle_t</a></td></tr>
<tr class="memdesc:struct__dspi__master__handle"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master transfer handle structure used for transactional API.  <a href="group__dspi__driver.html#struct__dspi__master__handle">More...</a><br /></td></tr>
<tr class="separator:struct__dspi__master__handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:struct__dspi__slave__handle"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#struct__dspi__slave__handle">dspi_slave_handle_t</a></td></tr>
<tr class="memdesc:struct__dspi__slave__handle"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI slave transfer handle structure used for transactional API.  <a href="group__dspi__driver.html#struct__dspi__slave__handle">More...</a><br /></td></tr>
<tr class="separator:struct__dspi__slave__handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga67d91a817bd68468037b7886ea710ffa"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga67d91a817bd68468037b7886ea710ffa">dspi_master_transfer_callback_t</a>) (SPI_Type *base, dspi_master_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, void *userData)</td></tr>
<tr class="memdesc:ga67d91a817bd68468037b7886ea710ffa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Completion callback function pointer type.  <a href="#ga67d91a817bd68468037b7886ea710ffa">More...</a><br /></td></tr>
<tr class="separator:ga67d91a817bd68468037b7886ea710ffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf928cd95fbb7eb5d5f306c9a4d4afce4"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gaf928cd95fbb7eb5d5f306c9a4d4afce4">dspi_slave_transfer_callback_t</a>) (SPI_Type *base, dspi_slave_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, void *userData)</td></tr>
<tr class="memdesc:gaf928cd95fbb7eb5d5f306c9a4d4afce4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Completion callback function pointer type.  <a href="#gaf928cd95fbb7eb5d5f306c9a4d4afce4">More...</a><br /></td></tr>
<tr class="separator:gaf928cd95fbb7eb5d5f306c9a4d4afce4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga06b41ab984bc03e6f1eb07988edcb3ea"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga06b41ab984bc03e6f1eb07988edcb3ea">_dspi_status</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga06b41ab984bc03e6f1eb07988edcb3eaad5ecc8346da4119b8609c6bcb4c57e40">kStatus_DSPI_Busy</a> = MAKE_STATUS(kStatusGroup_DSPI, 0), 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga06b41ab984bc03e6f1eb07988edcb3eaaaae2ba17a6a622142816b0ffec7b9f7a">kStatus_DSPI_Error</a> = MAKE_STATUS(kStatusGroup_DSPI, 1), 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga06b41ab984bc03e6f1eb07988edcb3eaa638dc0d050e7660225a46cc7cd6e38c7">kStatus_DSPI_Idle</a> = MAKE_STATUS(kStatusGroup_DSPI, 2), 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga06b41ab984bc03e6f1eb07988edcb3eaac1713712f0410e28da008d714734a6bd">kStatus_DSPI_OutOfRange</a> = MAKE_STATUS(kStatusGroup_DSPI, 3)
<br />
 }<tr class="memdesc:ga06b41ab984bc03e6f1eb07988edcb3ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Status for the DSPI driver.  <a href="group__dspi__driver.html#ga06b41ab984bc03e6f1eb07988edcb3ea">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga06b41ab984bc03e6f1eb07988edcb3ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2bfefaf6ba65ba464e764d1c918c904f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga2bfefaf6ba65ba464e764d1c918c904f">_dspi_flags</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904faffc8e8711d9083470cddb0db647b75b0">kDSPI_TxCompleteFlag</a> = SPI_SR_TCF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904fae91c7a5cc2a90fa051c89f13bbb6d8ed">kDSPI_EndOfQueueFlag</a> = SPI_SR_EOQF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904fae36215137d8ce7cf215349199db877b7">kDSPI_TxFifoUnderflowFlag</a> = SPI_SR_TFUF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904fae9704d53b57758969f8ea5ea6c86f7f0">kDSPI_TxFifoFillRequestFlag</a> = SPI_SR_TFFF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904fa30f039adca01f89dbbd02f70dff725ee">kDSPI_RxFifoOverflowFlag</a> = SPI_SR_RFOF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904fa092b7f39357ce8cb82ec825e93536605">kDSPI_RxFifoDrainRequestFlag</a> = SPI_SR_RFDF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904fa58771b3977aef221dab6a67a6739f8d6">kDSPI_TxAndRxStatusFlag</a> = SPI_SR_TXRXS_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga2bfefaf6ba65ba464e764d1c918c904fa4a742818251256d8fc35ab63a6af9c9e">kDSPI_AllStatusFlag</a>
<br />
 }<tr class="memdesc:ga2bfefaf6ba65ba464e764d1c918c904f"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI status flags in SPIx_SR register.  <a href="group__dspi__driver.html#ga2bfefaf6ba65ba464e764d1c918c904f">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga2bfefaf6ba65ba464e764d1c918c904f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeb57298690a2f1a09d94d696c893c4b2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gaeb57298690a2f1a09d94d696c893c4b2">_dspi_interrupt_enable</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggaeb57298690a2f1a09d94d696c893c4b2ab2b1ba228fd75de23a2de7e56c1ee438">kDSPI_TxCompleteInterruptEnable</a> = SPI_RSER_TCF_RE_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggaeb57298690a2f1a09d94d696c893c4b2a069483b28469fcbfa5890b04cd6439b3">kDSPI_EndOfQueueInterruptEnable</a> = SPI_RSER_EOQF_RE_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggaeb57298690a2f1a09d94d696c893c4b2aa430e623e0bb240752381eaddda1a973">kDSPI_TxFifoUnderflowInterruptEnable</a> = SPI_RSER_TFUF_RE_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggaeb57298690a2f1a09d94d696c893c4b2ada57830661d523d12e49892060fde201">kDSPI_TxFifoFillRequestInterruptEnable</a> = SPI_RSER_TFFF_RE_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggaeb57298690a2f1a09d94d696c893c4b2a190746a0aeaa61db32c6c1a7b850d0ee">kDSPI_RxFifoOverflowInterruptEnable</a> = SPI_RSER_RFOF_RE_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggaeb57298690a2f1a09d94d696c893c4b2aa7d99e6ac31bd6c7d835d89f36cec1a6">kDSPI_RxFifoDrainRequestInterruptEnable</a> = SPI_RSER_RFDF_RE_MASK, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggaeb57298690a2f1a09d94d696c893c4b2a530d972d6cd16ab6e929d7ddaaf09b30">kDSPI_AllInterruptEnable</a>
<br />
 }<tr class="memdesc:gaeb57298690a2f1a09d94d696c893c4b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI interrupt source.  <a href="group__dspi__driver.html#gaeb57298690a2f1a09d94d696c893c4b2">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaeb57298690a2f1a09d94d696c893c4b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae3359796dc0680797b1f74b83fc0c0d9"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gae3359796dc0680797b1f74b83fc0c0d9">_dspi_dma_enable</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggae3359796dc0680797b1f74b83fc0c0d9ae772dc49e5a28df00b817f9c6dab0749">kDSPI_TxDmaEnable</a> = (SPI_RSER_TFFF_RE_MASK | SPI_RSER_TFFF_DIRS_MASK), 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggae3359796dc0680797b1f74b83fc0c0d9a15ec9c9897199d53a1b354ccce6d0445">kDSPI_RxDmaEnable</a> = (SPI_RSER_RFDF_RE_MASK | SPI_RSER_RFDF_DIRS_MASK)
<br />
 }<tr class="memdesc:gae3359796dc0680797b1f74b83fc0c0d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI DMA source.  <a href="group__dspi__driver.html#gae3359796dc0680797b1f74b83fc0c0d9">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gae3359796dc0680797b1f74b83fc0c0d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad7f974015f32db057dafada8b95641aa"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad7f974015f32db057dafada8b95641aa">dspi_master_slave_mode_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad7f974015f32db057dafada8b95641aaa8330c6ad827da3c783df5805244fa7d9">kDSPI_Master</a> = 1U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad7f974015f32db057dafada8b95641aaa2e075745386fd71bee2535606f29dd87">kDSPI_Slave</a> = 0U
<br />
 }<tr class="memdesc:gad7f974015f32db057dafada8b95641aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master or slave mode configuration.  <a href="group__dspi__driver.html#gad7f974015f32db057dafada8b95641aa">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gad7f974015f32db057dafada8b95641aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae783895e2917abe07adbe27a253510a2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gae783895e2917abe07adbe27a253510a2">dspi_master_sample_point_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggae783895e2917abe07adbe27a253510a2abbcf84bafbd94a63a9600647162b8d86">kDSPI_SckToSin0Clock</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggae783895e2917abe07adbe27a253510a2a61e5f5d7122c849c737513ae7c5c4c50">kDSPI_SckToSin1Clock</a> = 1U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggae783895e2917abe07adbe27a253510a2a305d68c9446ca0866da7a2ace743ae4d">kDSPI_SckToSin2Clock</a> = 2U
<br />
 }<tr class="memdesc:gae783895e2917abe07adbe27a253510a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI Sample Point: Controls when the DSPI master samples SIN in Modified Transfer Format. This field is valid only when CPHA bit in CTAR register is 0.  <a href="group__dspi__driver.html#gae783895e2917abe07adbe27a253510a2">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gae783895e2917abe07adbe27a253510a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga36d77cff6cfa202e0ff3a05ab4c2a632"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga36d77cff6cfa202e0ff3a05ab4c2a632">dspi_which_pcs_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga36d77cff6cfa202e0ff3a05ab4c2a632a5c6297be9586ee874fa1a84a16d810b7">kDSPI_Pcs0</a> = 1U &lt;&lt; 0, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga36d77cff6cfa202e0ff3a05ab4c2a632a62d3c43292cebeed478a36bff2cd033a">kDSPI_Pcs1</a> = 1U &lt;&lt; 1, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga36d77cff6cfa202e0ff3a05ab4c2a632a625c90d5151e8458be6f89ace68f2fe2">kDSPI_Pcs2</a> = 1U &lt;&lt; 2, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga36d77cff6cfa202e0ff3a05ab4c2a632a7fae848c0f775a86562b90ecfd171cc8">kDSPI_Pcs3</a> = 1U &lt;&lt; 3, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga36d77cff6cfa202e0ff3a05ab4c2a632a0fd968cdbfd2e088987e309f49cb20f2">kDSPI_Pcs4</a> = 1U &lt;&lt; 4, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga36d77cff6cfa202e0ff3a05ab4c2a632a67653d39cbd675c9141bb014d4576a0b">kDSPI_Pcs5</a> = 1U &lt;&lt; 5
<br />
 }<tr class="memdesc:ga36d77cff6cfa202e0ff3a05ab4c2a632"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI Peripheral Chip Select (Pcs) configuration (which Pcs to configure).  <a href="group__dspi__driver.html#ga36d77cff6cfa202e0ff3a05ab4c2a632">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga36d77cff6cfa202e0ff3a05ab4c2a632"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab466e73cb54b2c023459d43918c4197d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gab466e73cb54b2c023459d43918c4197d">dspi_pcs_polarity_config_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggab466e73cb54b2c023459d43918c4197da79a6807edd30a1230477ab26068060fd">kDSPI_PcsActiveHigh</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggab466e73cb54b2c023459d43918c4197daa678a5937bbb9975e3c014592c3d542c">kDSPI_PcsActiveLow</a> = 1U
<br />
 }<tr class="memdesc:gab466e73cb54b2c023459d43918c4197d"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI Peripheral Chip Select (Pcs) Polarity configuration.  <a href="group__dspi__driver.html#gab466e73cb54b2c023459d43918c4197d">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gab466e73cb54b2c023459d43918c4197d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad23a66cefb04826de83504ad485f19a9"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad23a66cefb04826de83504ad485f19a9">_dspi_pcs_polarity</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad23a66cefb04826de83504ad485f19a9ac731b21eefcc16342d2c606a12a00547">kDSPI_Pcs0ActiveLow</a> = 1U &lt;&lt; 0, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad23a66cefb04826de83504ad485f19a9aa6ee5dca40cbe9bf03623cf986adbadd">kDSPI_Pcs1ActiveLow</a> = 1U &lt;&lt; 1, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad23a66cefb04826de83504ad485f19a9a6fd76d22cb6c8f943ae397bb91ba68f4">kDSPI_Pcs2ActiveLow</a> = 1U &lt;&lt; 2, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad23a66cefb04826de83504ad485f19a9a57e33d7e4195864f89db11d2f5e6cc4b">kDSPI_Pcs3ActiveLow</a> = 1U &lt;&lt; 3, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad23a66cefb04826de83504ad485f19a9a15c201d8e7bd0bab1dd7117b73a111ec">kDSPI_Pcs4ActiveLow</a> = 1U &lt;&lt; 4, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad23a66cefb04826de83504ad485f19a9a88e1e00a5a7755561358f004a5a1b1d4">kDSPI_Pcs5ActiveLow</a> = 1U &lt;&lt; 5, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggad23a66cefb04826de83504ad485f19a9adb2bef5058b4bf00533cc89f1928e2d1">kDSPI_PcsAllActiveLow</a> = 0xFFU
<br />
 }<tr class="memdesc:gad23a66cefb04826de83504ad485f19a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI Peripheral Chip Select (Pcs) Polarity.  <a href="group__dspi__driver.html#gad23a66cefb04826de83504ad485f19a9">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gad23a66cefb04826de83504ad485f19a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e0a9074742794ef89f597d220296651"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga1e0a9074742794ef89f597d220296651">dspi_clock_polarity_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga1e0a9074742794ef89f597d220296651ab5279f36f0c6b1617aa937824806d71d">kDSPI_ClockPolarityActiveHigh</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga1e0a9074742794ef89f597d220296651abcde58b8834e5cd1181b8b98aa4a10ef">kDSPI_ClockPolarityActiveLow</a> = 1U
<br />
 }<tr class="memdesc:ga1e0a9074742794ef89f597d220296651"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI clock polarity configuration for a given CTAR.  <a href="group__dspi__driver.html#ga1e0a9074742794ef89f597d220296651">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga1e0a9074742794ef89f597d220296651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4269ec144334dd60666a92e6fd2c1476"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga4269ec144334dd60666a92e6fd2c1476">dspi_clock_phase_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga4269ec144334dd60666a92e6fd2c1476a996e921abbf325ee9978a42681aee0d5">kDSPI_ClockPhaseFirstEdge</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga4269ec144334dd60666a92e6fd2c1476a43ee643e847b3118e38da0a9811d97f9">kDSPI_ClockPhaseSecondEdge</a> = 1U
<br />
 }<tr class="memdesc:ga4269ec144334dd60666a92e6fd2c1476"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI clock phase configuration for a given CTAR.  <a href="group__dspi__driver.html#ga4269ec144334dd60666a92e6fd2c1476">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga4269ec144334dd60666a92e6fd2c1476"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga06fad8ae17b680f6dddfd798c9d3b30d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga06fad8ae17b680f6dddfd798c9d3b30d">dspi_shift_direction_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga06fad8ae17b680f6dddfd798c9d3b30da8885a916a15d0b97ffd0f28d81242f6f">kDSPI_MsbFirst</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga06fad8ae17b680f6dddfd798c9d3b30da76701314fa7dbd70e4011feb326b9050">kDSPI_LsbFirst</a> = 1U
<br />
 }<tr class="memdesc:ga06fad8ae17b680f6dddfd798c9d3b30d"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI data shifter direction options for a given CTAR.  <a href="group__dspi__driver.html#ga06fad8ae17b680f6dddfd798c9d3b30d">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga06fad8ae17b680f6dddfd798c9d3b30d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1ca2fbee37b3cb046c075a7e765d64ed"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga1ca2fbee37b3cb046c075a7e765d64ed">dspi_delay_type_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga1ca2fbee37b3cb046c075a7e765d64eda71185ae0d4d9dd61acbc69bce93f33f5">kDSPI_PcsToSck</a> = 1U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga1ca2fbee37b3cb046c075a7e765d64edaa2ce775b9575a3870ce82b8444b9d56c">kDSPI_LastSckToPcs</a>, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga1ca2fbee37b3cb046c075a7e765d64eda83ed3f05b8a61f94c0da066c1ded7a1e">kDSPI_BetweenTransfer</a>
<br />
 }<tr class="memdesc:ga1ca2fbee37b3cb046c075a7e765d64ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI delay type selection.  <a href="group__dspi__driver.html#ga1ca2fbee37b3cb046c075a7e765d64ed">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga1ca2fbee37b3cb046c075a7e765d64ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga992d5562af4cf4c45371feb8c5c1a1bf"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfadb2a4c8c9b722c6a1b8cbb03b17a6519">kDSPI_Ctar0</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfad6db3f5779fd74fdfa9bda2375573227">kDSPI_Ctar1</a> = 1U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfa406d09f42f5e009617a40f4c30cc10d9">kDSPI_Ctar2</a> = 2U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfaf1df973bc8d89efbfb8d7bff51af0265">kDSPI_Ctar3</a> = 3U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfa13960000166ae1cc18b19f5c4c9405ff">kDSPI_Ctar4</a> = 4U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfad0b231829a94051ce913cd367135c1f2">kDSPI_Ctar5</a> = 5U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfaa7bb6aaabeb65811e58af0460c38e373">kDSPI_Ctar6</a> = 6U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfa6ae1a9c5243a507f36c3db1ef14c216e">kDSPI_Ctar7</a> = 7U
<br />
 }<tr class="memdesc:ga992d5562af4cf4c45371feb8c5c1a1bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI Clock and Transfer Attributes Register (CTAR) selection.  <a href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga992d5562af4cf4c45371feb8c5c1a1bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac74dfe19c844271a393314a4fd13792f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gac74dfe19c844271a393314a4fd13792f">_dspi_transfer_config_flag_for_master</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792faf7ddf42278af30a1b81f10c4058ecddd">kDSPI_MasterCtar0</a> = 0U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa57508605f5d5fb0a2fb7eddfcdb89f12">kDSPI_MasterCtar1</a> = 1U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa6cf50df8fd75f5be1347efcaec8a68f4">kDSPI_MasterCtar2</a> = 2U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa70471fdf900dba881f4e742d303d307c">kDSPI_MasterCtar3</a> = 3U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792faad989e96bfed1f2fbb0fcc3adb99d04b">kDSPI_MasterCtar4</a> = 4U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa5c3dbe0ddb8e9f3f67496592ef3ec902">kDSPI_MasterCtar5</a> = 5U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa5e898da1cd4e093f048f947bc751b7fa">kDSPI_MasterCtar6</a> = 6U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa90cf553b9933d1e3d692469e0fa5ddc3">kDSPI_MasterCtar7</a> = 7U &lt;&lt; DSPI_MASTER_CTAR_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fad51bd34d51062d900b07801e0fd193cc">kDSPI_MasterPcs0</a> = 0U &lt;&lt; DSPI_MASTER_PCS_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fad07c95fafd30869cb6110d4ea3ed7ca1">kDSPI_MasterPcs1</a> = 1U &lt;&lt; DSPI_MASTER_PCS_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa116fef8c0a72727a80e72e1d1d0d0ffc">kDSPI_MasterPcs2</a> = 2U &lt;&lt; DSPI_MASTER_PCS_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa2266cc2ddbf05da3164fa6ad680facd9">kDSPI_MasterPcs3</a> = 3U &lt;&lt; DSPI_MASTER_PCS_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa3b32f4a57a5aaaaf0064d7ec1373a154">kDSPI_MasterPcs4</a> = 4U &lt;&lt; DSPI_MASTER_PCS_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa8047faff72926a57c0659f4147787353">kDSPI_MasterPcs5</a> = 5U &lt;&lt; DSPI_MASTER_PCS_SHIFT, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa8309b1b52bbaa930bbcc3e2407f1a6f5">kDSPI_MasterPcsContinuous</a> = 1U &lt;&lt; 20, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fa458df11cc493759474f31873cfa8d4c1">kDSPI_MasterActiveAfterTransfer</a> = 1U &lt;&lt; 21
<br />
 }<tr class="memdesc:gac74dfe19c844271a393314a4fd13792f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can use this enum for DSPI master transfer configFlags.  <a href="group__dspi__driver.html#gac74dfe19c844271a393314a4fd13792f">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gac74dfe19c844271a393314a4fd13792f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5070a73633ee72428adda72058f7fb5f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga5070a73633ee72428adda72058f7fb5f">_dspi_transfer_config_flag_for_slave</a> { <a class="el" href="group__dspi__driver.html#gga5070a73633ee72428adda72058f7fb5fa6e63c217f9b392f78fb96ee039c991c8">kDSPI_SlaveCtar0</a> = 0U &lt;&lt; DSPI_SLAVE_CTAR_SHIFT
 }<tr class="memdesc:ga5070a73633ee72428adda72058f7fb5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can use this enum for DSPI slave transfer configFlags.  <a href="group__dspi__driver.html#ga5070a73633ee72428adda72058f7fb5f">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga5070a73633ee72428adda72058f7fb5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga97c65523863f89cddbf06691c678a7f9"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga97c65523863f89cddbf06691c678a7f9">_dspi_transfer_state</a> { <br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga97c65523863f89cddbf06691c678a7f9ae739fb0dabff3a7cb72c39eef943a373">kDSPI_Idle</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga97c65523863f89cddbf06691c678a7f9a4b636d65ab83d136e81ed31e30de4429">kDSPI_Busy</a>, 
<br />
&#160;&#160;<a class="el" href="group__dspi__driver.html#gga97c65523863f89cddbf06691c678a7f9a6d94f11a50f542371683efe9ea22efb9">kDSPI_Error</a>
<br />
 }<tr class="memdesc:ga97c65523863f89cddbf06691c678a7f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI transfer state, which is used for DSPI transactiaonl APIs' state machine.  <a href="group__dspi__driver.html#ga97c65523863f89cddbf06691c678a7f9">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga97c65523863f89cddbf06691c678a7f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Initialization and deinitialization</h2></td></tr>
<tr class="memitem:gaadf23f732f4c1b61d6634bd17b1a36d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gaadf23f732f4c1b61d6634bd17b1a36d7">DSPI_MasterInit</a> (SPI_Type *base, const <a class="el" href="group__dspi__driver.html#structdspi__master__config__t">dspi_master_config_t</a> *masterConfig, uint32_t srcClock_Hz)</td></tr>
<tr class="memdesc:gaadf23f732f4c1b61d6634bd17b1a36d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the DSPI master.  <a href="#gaadf23f732f4c1b61d6634bd17b1a36d7">More...</a><br /></td></tr>
<tr class="separator:gaadf23f732f4c1b61d6634bd17b1a36d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0061c90bc787dc1faffde79cb256e8a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga0061c90bc787dc1faffde79cb256e8a4">DSPI_MasterGetDefaultConfig</a> (<a class="el" href="group__dspi__driver.html#structdspi__master__config__t">dspi_master_config_t</a> *masterConfig)</td></tr>
<tr class="memdesc:ga0061c90bc787dc1faffde79cb256e8a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the <a class="el" href="group__dspi__driver.html#structdspi__master__config__t" title="DSPI master config structure. ">dspi_master_config_t</a> structure to default values.  <a href="#ga0061c90bc787dc1faffde79cb256e8a4">More...</a><br /></td></tr>
<tr class="separator:ga0061c90bc787dc1faffde79cb256e8a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacf6cecb6b73f02eaa448634a8d705851"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gacf6cecb6b73f02eaa448634a8d705851">DSPI_SlaveInit</a> (SPI_Type *base, const <a class="el" href="group__dspi__driver.html#structdspi__slave__config__t">dspi_slave_config_t</a> *slaveConfig)</td></tr>
<tr class="memdesc:gacf6cecb6b73f02eaa448634a8d705851"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI slave configuration.  <a href="#gacf6cecb6b73f02eaa448634a8d705851">More...</a><br /></td></tr>
<tr class="separator:gacf6cecb6b73f02eaa448634a8d705851"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad85a8d4e7bd2747103691a63ef9a67e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad85a8d4e7bd2747103691a63ef9a67e1">DSPI_SlaveGetDefaultConfig</a> (<a class="el" href="group__dspi__driver.html#structdspi__slave__config__t">dspi_slave_config_t</a> *slaveConfig)</td></tr>
<tr class="memdesc:gad85a8d4e7bd2747103691a63ef9a67e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the <a class="el" href="group__dspi__driver.html#structdspi__slave__config__t" title="DSPI slave configuration structure. ">dspi_slave_config_t</a> structure to default values.  <a href="#gad85a8d4e7bd2747103691a63ef9a67e1">More...</a><br /></td></tr>
<tr class="separator:gad85a8d4e7bd2747103691a63ef9a67e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa669bb8f6438b1d4f7ec38ba180653fa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gaa669bb8f6438b1d4f7ec38ba180653fa">DSPI_Deinit</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:gaa669bb8f6438b1d4f7ec38ba180653fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the DSPI peripheral. Call this API to disable the DSPI clock.  <a href="#gaa669bb8f6438b1d4f7ec38ba180653fa">More...</a><br /></td></tr>
<tr class="separator:gaa669bb8f6438b1d4f7ec38ba180653fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga38a2ee1ed351246ebbdc4b242b835164"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga38a2ee1ed351246ebbdc4b242b835164">DSPI_Enable</a> (SPI_Type *base, bool enable)</td></tr>
<tr class="memdesc:ga38a2ee1ed351246ebbdc4b242b835164"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the DSPI peripheral and sets the MCR MDIS to 0.  <a href="#ga38a2ee1ed351246ebbdc4b242b835164">More...</a><br /></td></tr>
<tr class="separator:ga38a2ee1ed351246ebbdc4b242b835164"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Status</h2></td></tr>
<tr class="memitem:ga11005216bf792c91894d9e670b0323f8"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga11005216bf792c91894d9e670b0323f8">DSPI_GetStatusFlags</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:ga11005216bf792c91894d9e670b0323f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the DSPI status flag state.  <a href="#ga11005216bf792c91894d9e670b0323f8">More...</a><br /></td></tr>
<tr class="separator:ga11005216bf792c91894d9e670b0323f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga11454768ad4c96b65b298cccf1f0401c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga11454768ad4c96b65b298cccf1f0401c">DSPI_ClearStatusFlags</a> (SPI_Type *base, uint32_t statusFlags)</td></tr>
<tr class="memdesc:ga11454768ad4c96b65b298cccf1f0401c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the DSPI status flag.  <a href="#ga11454768ad4c96b65b298cccf1f0401c">More...</a><br /></td></tr>
<tr class="separator:ga11454768ad4c96b65b298cccf1f0401c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Interrupts</h2></td></tr>
<tr class="memitem:ga9b9e4c8ae54ea108952c80940e11b3a8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga9b9e4c8ae54ea108952c80940e11b3a8">DSPI_EnableInterrupts</a> (SPI_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga9b9e4c8ae54ea108952c80940e11b3a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the DSPI interrupts.  <a href="#ga9b9e4c8ae54ea108952c80940e11b3a8">More...</a><br /></td></tr>
<tr class="separator:ga9b9e4c8ae54ea108952c80940e11b3a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf5c4ec1216387b8c476853e45a9bfeb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gabf5c4ec1216387b8c476853e45a9bfeb">DSPI_DisableInterrupts</a> (SPI_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gabf5c4ec1216387b8c476853e45a9bfeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the DSPI interrupts.  <a href="#gabf5c4ec1216387b8c476853e45a9bfeb">More...</a><br /></td></tr>
<tr class="separator:gabf5c4ec1216387b8c476853e45a9bfeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
DMA Control</h2></td></tr>
<tr class="memitem:ga313d41fd54ca75781bb7596b319d4849"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga313d41fd54ca75781bb7596b319d4849">DSPI_EnableDMA</a> (SPI_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga313d41fd54ca75781bb7596b319d4849"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the DSPI DMA request.  <a href="#ga313d41fd54ca75781bb7596b319d4849">More...</a><br /></td></tr>
<tr class="separator:ga313d41fd54ca75781bb7596b319d4849"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga543b12952cb5ac404ebbdaa572628c8e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga543b12952cb5ac404ebbdaa572628c8e">DSPI_DisableDMA</a> (SPI_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga543b12952cb5ac404ebbdaa572628c8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the DSPI DMA request.  <a href="#ga543b12952cb5ac404ebbdaa572628c8e">More...</a><br /></td></tr>
<tr class="separator:ga543b12952cb5ac404ebbdaa572628c8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad3e8a8107cfda29dbae45fc5166d63f3"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad3e8a8107cfda29dbae45fc5166d63f3">DSPI_MasterGetTxRegisterAddress</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:gad3e8a8107cfda29dbae45fc5166d63f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the DSPI master PUSHR data register address for the DMA operation.  <a href="#gad3e8a8107cfda29dbae45fc5166d63f3">More...</a><br /></td></tr>
<tr class="separator:gad3e8a8107cfda29dbae45fc5166d63f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8912754715dfadde5473a419f7b8ff93"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga8912754715dfadde5473a419f7b8ff93">DSPI_SlaveGetTxRegisterAddress</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:ga8912754715dfadde5473a419f7b8ff93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the DSPI slave PUSHR data register address for the DMA operation.  <a href="#ga8912754715dfadde5473a419f7b8ff93">More...</a><br /></td></tr>
<tr class="separator:ga8912754715dfadde5473a419f7b8ff93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0d2bcb0a744852ab2701466a7fd974f6"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga0d2bcb0a744852ab2701466a7fd974f6">DSPI_GetRxRegisterAddress</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:ga0d2bcb0a744852ab2701466a7fd974f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the DSPI POPR data register address for the DMA operation.  <a href="#ga0d2bcb0a744852ab2701466a7fd974f6">More...</a><br /></td></tr>
<tr class="separator:ga0d2bcb0a744852ab2701466a7fd974f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Bus Operations</h2></td></tr>
<tr class="memitem:gac3e11f3876e81d7636a77fb268c2365a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gac3e11f3876e81d7636a77fb268c2365a">DSPI_SetMasterSlaveMode</a> (SPI_Type *base, <a class="el" href="group__dspi__driver.html#gad7f974015f32db057dafada8b95641aa">dspi_master_slave_mode_t</a> mode)</td></tr>
<tr class="memdesc:gac3e11f3876e81d7636a77fb268c2365a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the DSPI for master or slave.  <a href="#gac3e11f3876e81d7636a77fb268c2365a">More...</a><br /></td></tr>
<tr class="separator:gac3e11f3876e81d7636a77fb268c2365a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae606c91960692b493d17d067c38d67b3"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gae606c91960692b493d17d067c38d67b3">DSPI_IsMaster</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:gae606c91960692b493d17d067c38d67b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the DSPI module is in master mode.  <a href="#gae606c91960692b493d17d067c38d67b3">More...</a><br /></td></tr>
<tr class="separator:gae606c91960692b493d17d067c38d67b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3fb40ea05b407f5b335c0a47330e3a8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gac3fb40ea05b407f5b335c0a47330e3a8">DSPI_StartTransfer</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:gac3fb40ea05b407f5b335c0a47330e3a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts the DSPI transfers and clears HALT bit in MCR.  <a href="#gac3fb40ea05b407f5b335c0a47330e3a8">More...</a><br /></td></tr>
<tr class="separator:gac3fb40ea05b407f5b335c0a47330e3a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga09021ebd27d4ccf5d85398b5bbf12045"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga09021ebd27d4ccf5d85398b5bbf12045">DSPI_StopTransfer</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:ga09021ebd27d4ccf5d85398b5bbf12045"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops (halts) DSPI transfers and sets HALT bit in MCR.  <a href="#ga09021ebd27d4ccf5d85398b5bbf12045">More...</a><br /></td></tr>
<tr class="separator:ga09021ebd27d4ccf5d85398b5bbf12045"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad9112153c575eeeb6af747d9e6396514"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad9112153c575eeeb6af747d9e6396514">DSPI_SetFifoEnable</a> (SPI_Type *base, bool enableTxFifo, bool enableRxFifo)</td></tr>
<tr class="memdesc:gad9112153c575eeeb6af747d9e6396514"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables (or disables) the DSPI FIFOs.  <a href="#gad9112153c575eeeb6af747d9e6396514">More...</a><br /></td></tr>
<tr class="separator:gad9112153c575eeeb6af747d9e6396514"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3cbb532b5bd6981f5cc0115f49a9ee9a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga3cbb532b5bd6981f5cc0115f49a9ee9a">DSPI_FlushFifo</a> (SPI_Type *base, bool flushTxFifo, bool flushRxFifo)</td></tr>
<tr class="memdesc:ga3cbb532b5bd6981f5cc0115f49a9ee9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flushes the DSPI FIFOs.  <a href="#ga3cbb532b5bd6981f5cc0115f49a9ee9a">More...</a><br /></td></tr>
<tr class="separator:ga3cbb532b5bd6981f5cc0115f49a9ee9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1c42d5efc75982041f4a66f4f1fc71a4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga1c42d5efc75982041f4a66f4f1fc71a4">DSPI_SetAllPcsPolarity</a> (SPI_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga1c42d5efc75982041f4a66f4f1fc71a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the DSPI peripheral chip select polarity simultaneously. For example, PCS0 and PCS1 set to active low and other PCS set to active high. Note that the number of PCSs is specific to the device.  <a href="#ga1c42d5efc75982041f4a66f4f1fc71a4">More...</a><br /></td></tr>
<tr class="separator:ga1c42d5efc75982041f4a66f4f1fc71a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac76cf793dd837dd0b502770913058592"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gac76cf793dd837dd0b502770913058592">DSPI_MasterSetBaudRate</a> (SPI_Type *base, <a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a> whichCtar, uint32_t baudRate_Bps, uint32_t srcClock_Hz)</td></tr>
<tr class="memdesc:gac76cf793dd837dd0b502770913058592"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the DSPI baud rate in bits per second.  <a href="#gac76cf793dd837dd0b502770913058592">More...</a><br /></td></tr>
<tr class="separator:gac76cf793dd837dd0b502770913058592"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga56d5b87114e56507c0ec2d631ffefaa2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga56d5b87114e56507c0ec2d631ffefaa2">DSPI_MasterSetDelayScaler</a> (SPI_Type *base, <a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a> whichCtar, uint32_t prescaler, uint32_t scaler, <a class="el" href="group__dspi__driver.html#ga1ca2fbee37b3cb046c075a7e765d64ed">dspi_delay_type_t</a> whichDelay)</td></tr>
<tr class="memdesc:ga56d5b87114e56507c0ec2d631ffefaa2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Manually configures the delay prescaler and scaler for a particular CTAR.  <a href="#ga56d5b87114e56507c0ec2d631ffefaa2">More...</a><br /></td></tr>
<tr class="separator:ga56d5b87114e56507c0ec2d631ffefaa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac60f64fd410404ebab553ee878b464c2"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gac60f64fd410404ebab553ee878b464c2">DSPI_MasterSetDelayTimes</a> (SPI_Type *base, <a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a> whichCtar, <a class="el" href="group__dspi__driver.html#ga1ca2fbee37b3cb046c075a7e765d64ed">dspi_delay_type_t</a> whichDelay, uint32_t srcClock_Hz, uint32_t delayTimeInNanoSec)</td></tr>
<tr class="memdesc:gac60f64fd410404ebab553ee878b464c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the delay prescaler and scaler based on the desired delay input in nanoseconds.  <a href="#gac60f64fd410404ebab553ee878b464c2">More...</a><br /></td></tr>
<tr class="separator:gac60f64fd410404ebab553ee878b464c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabe0d615b273c4cb0eaf26d9679b73ad6"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gabe0d615b273c4cb0eaf26d9679b73ad6">DSPI_MasterWriteData</a> (SPI_Type *base, <a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *command, uint16_t data)</td></tr>
<tr class="memdesc:gabe0d615b273c4cb0eaf26d9679b73ad6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data into the data buffer for master mode.  <a href="#gabe0d615b273c4cb0eaf26d9679b73ad6">More...</a><br /></td></tr>
<tr class="separator:gabe0d615b273c4cb0eaf26d9679b73ad6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad9f3df616e7284696af57cce8f49899e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad9f3df616e7284696af57cce8f49899e">DSPI_GetDefaultDataCommandConfig</a> (<a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *command)</td></tr>
<tr class="memdesc:gad9f3df616e7284696af57cce8f49899e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the <a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t" title="DSPI master command date configuration used for SPIx_PUSHR. ">dspi_command_data_config_t</a> structure to default values.  <a href="#gad9f3df616e7284696af57cce8f49899e">More...</a><br /></td></tr>
<tr class="separator:gad9f3df616e7284696af57cce8f49899e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga70a0f7d7fe2fbce7993bbcc8c427b2b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga70a0f7d7fe2fbce7993bbcc8c427b2b0">DSPI_MasterWriteDataBlocking</a> (SPI_Type *base, <a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *command, uint16_t data)</td></tr>
<tr class="memdesc:ga70a0f7d7fe2fbce7993bbcc8c427b2b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data into the data buffer master mode and waits till complete to return.  <a href="#ga70a0f7d7fe2fbce7993bbcc8c427b2b0">More...</a><br /></td></tr>
<tr class="separator:ga70a0f7d7fe2fbce7993bbcc8c427b2b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4068b27da40c419a700badf2070fc5e4"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga4068b27da40c419a700badf2070fc5e4">DSPI_MasterGetFormattedCommand</a> (<a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *command)</td></tr>
<tr class="memdesc:ga4068b27da40c419a700badf2070fc5e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the DSPI command word formatted to the PUSHR data register bit field.  <a href="#ga4068b27da40c419a700badf2070fc5e4">More...</a><br /></td></tr>
<tr class="separator:ga4068b27da40c419a700badf2070fc5e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0718581088422b572cb4494f26aad1f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga0718581088422b572cb4494f26aad1f9">DSPI_MasterWriteCommandDataBlocking</a> (SPI_Type *base, uint32_t data)</td></tr>
<tr class="memdesc:ga0718581088422b572cb4494f26aad1f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a 32-bit data word (16-bit command appended with 16-bit data) into the data buffer, master mode and waits till complete to return.  <a href="#ga0718581088422b572cb4494f26aad1f9">More...</a><br /></td></tr>
<tr class="separator:ga0718581088422b572cb4494f26aad1f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga952c2bfcb7e3ac7d3608ec16add273dc"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga952c2bfcb7e3ac7d3608ec16add273dc">DSPI_SlaveWriteData</a> (SPI_Type *base, uint32_t data)</td></tr>
<tr class="memdesc:ga952c2bfcb7e3ac7d3608ec16add273dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data into the data buffer in slave mode.  <a href="#ga952c2bfcb7e3ac7d3608ec16add273dc">More...</a><br /></td></tr>
<tr class="separator:ga952c2bfcb7e3ac7d3608ec16add273dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad7a98ccdb5dcd3ea9c282893b79cee79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad7a98ccdb5dcd3ea9c282893b79cee79">DSPI_SlaveWriteDataBlocking</a> (SPI_Type *base, uint32_t data)</td></tr>
<tr class="memdesc:gad7a98ccdb5dcd3ea9c282893b79cee79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data into the data buffer in slave mode, waits till data was transmitted, and returns.  <a href="#gad7a98ccdb5dcd3ea9c282893b79cee79">More...</a><br /></td></tr>
<tr class="separator:gad7a98ccdb5dcd3ea9c282893b79cee79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaee93673062a6fb105dcf1e0541dd8b52"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gaee93673062a6fb105dcf1e0541dd8b52">DSPI_ReadData</a> (SPI_Type *base)</td></tr>
<tr class="memdesc:gaee93673062a6fb105dcf1e0541dd8b52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads data from the data buffer.  <a href="#gaee93673062a6fb105dcf1e0541dd8b52">More...</a><br /></td></tr>
<tr class="separator:gaee93673062a6fb105dcf1e0541dd8b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Transactional</h2></td></tr>
<tr class="memitem:ga63e04b92d99d795cf84df62379765a91"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga63e04b92d99d795cf84df62379765a91">DSPI_MasterTransferCreateHandle</a> (SPI_Type *base, dspi_master_handle_t *handle, <a class="el" href="group__dspi__driver.html#ga67d91a817bd68468037b7886ea710ffa">dspi_master_transfer_callback_t</a> callback, void *userData)</td></tr>
<tr class="memdesc:ga63e04b92d99d795cf84df62379765a91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the DSPI master handle.  <a href="#ga63e04b92d99d795cf84df62379765a91">More...</a><br /></td></tr>
<tr class="separator:ga63e04b92d99d795cf84df62379765a91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab2d0aa3acb2acc3cc5413314d758628b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gab2d0aa3acb2acc3cc5413314d758628b">DSPI_MasterTransferBlocking</a> (SPI_Type *base, <a class="el" href="group__dspi__driver.html#structdspi__transfer__t">dspi_transfer_t</a> *transfer)</td></tr>
<tr class="memdesc:gab2d0aa3acb2acc3cc5413314d758628b"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master transfer data using polling.  <a href="#gab2d0aa3acb2acc3cc5413314d758628b">More...</a><br /></td></tr>
<tr class="separator:gab2d0aa3acb2acc3cc5413314d758628b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad3dc7b85b448ce6e16e227d7bf3769d6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gad3dc7b85b448ce6e16e227d7bf3769d6">DSPI_MasterTransferNonBlocking</a> (SPI_Type *base, dspi_master_handle_t *handle, <a class="el" href="group__dspi__driver.html#structdspi__transfer__t">dspi_transfer_t</a> *transfer)</td></tr>
<tr class="memdesc:gad3dc7b85b448ce6e16e227d7bf3769d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master transfer data using interrupts.  <a href="#gad3dc7b85b448ce6e16e227d7bf3769d6">More...</a><br /></td></tr>
<tr class="separator:gad3dc7b85b448ce6e16e227d7bf3769d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadaf98a7213c03f10d5820d363e827a73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gadaf98a7213c03f10d5820d363e827a73">DSPI_MasterTransferGetCount</a> (SPI_Type *base, dspi_master_handle_t *handle, size_t *count)</td></tr>
<tr class="memdesc:gadaf98a7213c03f10d5820d363e827a73"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the master transfer count.  <a href="#gadaf98a7213c03f10d5820d363e827a73">More...</a><br /></td></tr>
<tr class="separator:gadaf98a7213c03f10d5820d363e827a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga80633e998c10cb83685d6c64ecd33a55"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga80633e998c10cb83685d6c64ecd33a55">DSPI_MasterTransferAbort</a> (SPI_Type *base, dspi_master_handle_t *handle)</td></tr>
<tr class="memdesc:ga80633e998c10cb83685d6c64ecd33a55"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI master aborts transfer using an interrupt.  <a href="#ga80633e998c10cb83685d6c64ecd33a55">More...</a><br /></td></tr>
<tr class="separator:ga80633e998c10cb83685d6c64ecd33a55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga195eed1bfdc0d21e7adb76a5d6d247dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga195eed1bfdc0d21e7adb76a5d6d247dc">DSPI_MasterTransferHandleIRQ</a> (SPI_Type *base, dspi_master_handle_t *handle)</td></tr>
<tr class="memdesc:ga195eed1bfdc0d21e7adb76a5d6d247dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI Master IRQ handler function.  <a href="#ga195eed1bfdc0d21e7adb76a5d6d247dc">More...</a><br /></td></tr>
<tr class="separator:ga195eed1bfdc0d21e7adb76a5d6d247dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc23691aa2c06ae9076a5f0b16f33a8c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gadc23691aa2c06ae9076a5f0b16f33a8c">DSPI_SlaveTransferCreateHandle</a> (SPI_Type *base, dspi_slave_handle_t *handle, <a class="el" href="group__dspi__driver.html#gaf928cd95fbb7eb5d5f306c9a4d4afce4">dspi_slave_transfer_callback_t</a> callback, void *userData)</td></tr>
<tr class="memdesc:gadc23691aa2c06ae9076a5f0b16f33a8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the DSPI slave handle.  <a href="#gadc23691aa2c06ae9076a5f0b16f33a8c">More...</a><br /></td></tr>
<tr class="separator:gadc23691aa2c06ae9076a5f0b16f33a8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga81f85324750f75b8e7248846c88d99e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga81f85324750f75b8e7248846c88d99e7">DSPI_SlaveTransferNonBlocking</a> (SPI_Type *base, dspi_slave_handle_t *handle, <a class="el" href="group__dspi__driver.html#structdspi__transfer__t">dspi_transfer_t</a> *transfer)</td></tr>
<tr class="memdesc:ga81f85324750f75b8e7248846c88d99e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI slave transfers data using an interrupt.  <a href="#ga81f85324750f75b8e7248846c88d99e7">More...</a><br /></td></tr>
<tr class="separator:ga81f85324750f75b8e7248846c88d99e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4134bb536420951e8ecbe8edb987d199"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga4134bb536420951e8ecbe8edb987d199">DSPI_SlaveTransferGetCount</a> (SPI_Type *base, dspi_slave_handle_t *handle, size_t *count)</td></tr>
<tr class="memdesc:ga4134bb536420951e8ecbe8edb987d199"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the slave transfer count.  <a href="#ga4134bb536420951e8ecbe8edb987d199">More...</a><br /></td></tr>
<tr class="separator:ga4134bb536420951e8ecbe8edb987d199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e1be1f74fd8d372ce1af52c960d1361"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#ga7e1be1f74fd8d372ce1af52c960d1361">DSPI_SlaveTransferAbort</a> (SPI_Type *base, dspi_slave_handle_t *handle)</td></tr>
<tr class="memdesc:ga7e1be1f74fd8d372ce1af52c960d1361"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI slave aborts a transfer using an interrupt.  <a href="#ga7e1be1f74fd8d372ce1af52c960d1361">More...</a><br /></td></tr>
<tr class="separator:ga7e1be1f74fd8d372ce1af52c960d1361"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gade8288c503cc6c7af542cdc86947ecd3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dspi__driver.html#gade8288c503cc6c7af542cdc86947ecd3">DSPI_SlaveTransferHandleIRQ</a> (SPI_Type *base, dspi_slave_handle_t *handle)</td></tr>
<tr class="memdesc:gade8288c503cc6c7af542cdc86947ecd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">DSPI Master IRQ handler function.  <a href="#gade8288c503cc6c7af542cdc86947ecd3">More...</a><br /></td></tr>
<tr class="separator:gade8288c503cc6c7af542cdc86947ecd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<p>This section describes the programming interface of the DSPI Peripheral driver. The DSPI driver configures DSPI module, provides the functional and transactional interfaces to build the DSPI application.</p>
<h1><a class="anchor" id="DSPIFunGrps"></a>
Function groups</h1>
<h2><a class="anchor" id="DSPIInitReset"></a>
DSPI Initialization and De-initialization</h2>
<p>This function group initializes the default configuration structure for master and slave, initializes the DSPI master with a master configuration, initializes the DSPI slave with a slave configuration, and de-initializes the DSPI module.</p>
<h2><a class="anchor" id="DSPIBasicOps"></a>
DSPI Basic Operation</h2>
<p>This function group enables/disables the DSPI module both interrupt and DMA, gets the data register address for the DMA transfer, sets master and slave, starts and stops the transfer, and so on.</p>
<h2><a class="anchor" id="DSPITransOps"></a>
DSPI Transfer Operation</h2>
<p>This function group controls the transfer, master send/receive data, and slave send/receive data.</p>
<h2><a class="anchor" id="DSPIStatusOps"></a>
DSPI Status Operation</h2>
<p>This function group gets/clears the DSPI status.</p>
<h2><a class="anchor" id="DSPIBlockTrans"></a>
DSPI Block Transfer Operation</h2>
<p>This function group transfers a block of data, gets the transfer status, and aborts the transfer.</p>
<h1><a class="anchor" id="DSPITpyUC"></a>
Typical use case</h1>
<h2><a class="anchor" id="DSPIMasterOps"></a>
Master Operation</h2>
<div class="fragment"><div class="line">dspi_master_handle_t g_m_handle; <span class="comment">//global variable</span></div><div class="line"><a class="code" href="group__dspi__driver.html#structdspi__master__config__t">dspi_master_config_t</a>  masterConfig;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#ac45d6c26892c8389409d760b1df1bb6c">whichCtar</a>                                = <a class="code" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfadb2a4c8c9b722c6a1b8cbb03b17a6519">kDSPI_Ctar0</a>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#ab38a80feace530cdca66134f6e3801aa">baudRate</a>                      = baudrate;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#a8ccf58110b76fd897fd5861ec36ba249">bitsPerFrame</a>                  = 8;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#a2fe26bcedfe7c42d70ce5937888aedbe">cpol</a>                          = <a class="code" href="group__dspi__driver.html#gga1e0a9074742794ef89f597d220296651ab5279f36f0c6b1617aa937824806d71d">kDSPI_ClockPolarityActiveHigh</a>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#af0d368adbb308408dd5363039987896f">cpha</a>                          = <a class="code" href="group__dspi__driver.html#gga4269ec144334dd60666a92e6fd2c1476a996e921abbf325ee9978a42681aee0d5">kDSPI_ClockPhaseFirstEdge</a>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#a568c1aaf5a6ab0e6d70fbb09e7504ce5">direction</a>                     = <a class="code" href="group__dspi__driver.html#gga06fad8ae17b680f6dddfd798c9d3b30da8885a916a15d0b97ffd0f28d81242f6f">kDSPI_MsbFirst</a>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#a90f1390d2fa2a0e5f08925628f2fb227">pcsToSckDelayInNanoSec</a>        = 1000000000 / baudrate ;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#a9aa3ebdf191b0c2147755066f452b9c9">lastSckToPcsDelayInNanoSec</a>    = 1000000000 / baudrate ;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a5fe0dea438c0a381fbc560248223ceb2">ctarConfig</a>.<a class="code" href="group__dspi__driver.html#a0c9513415b6b6dc15b32854a9c9d9ef9">betweenTransferDelayInNanoSec</a> = 1000000000 / baudrate ;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a361b1cae3e8ba007b24d3721fc0275d3">whichPcs</a>                                 = <a class="code" href="group__dspi__driver.html#gga36d77cff6cfa202e0ff3a05ab4c2a632a5c6297be9586ee874fa1a84a16d810b7">kDSPI_Pcs0</a>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#ad782258c2c9e2c728de750dc18f97a29">pcsActiveHighOrLow</a>                       = <a class="code" href="group__dspi__driver.html#ggab466e73cb54b2c023459d43918c4197daa678a5937bbb9975e3c014592c3d542c">kDSPI_PcsActiveLow</a>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#ae5d5a0d257edd52b39bc7eed2789432a">enableContinuousSCK</a>                      = <span class="keyword">false</span>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a2a901c97793efe41a681b104173bb395">enableRxFifoOverWrite</a>                    = <span class="keyword">false</span>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a9f5693d8510277f6c97e1cdd64fa2a8b">enableModifiedTimingFormat</a>               = <span class="keyword">false</span>;</div><div class="line">masterConfig.<a class="code" href="group__dspi__driver.html#a8c9eff47b85e5843361534a77d0ec0f4">samplePoint</a>                              = <a class="code" href="group__dspi__driver.html#ggae783895e2917abe07adbe27a253510a2abbcf84bafbd94a63a9600647162b8d86">kDSPI_SckToSin0Clock</a>;</div><div class="line"><a class="code" href="group__dspi__driver.html#gaadf23f732f4c1b61d6634bd17b1a36d7">DSPI_MasterInit</a>(base, &amp;masterConfig, srcClock_Hz);</div><div class="line"></div><div class="line"><span class="comment">//srcClock_Hz = CLOCK_GetFreq(xxx);</span></div><div class="line"><a class="code" href="group__dspi__driver.html#gaadf23f732f4c1b61d6634bd17b1a36d7">DSPI_MasterInit</a>(base, &amp;masterConfig, srcClock_Hz);</div><div class="line"></div><div class="line"><a class="code" href="group__dspi__driver.html#ga63e04b92d99d795cf84df62379765a91">DSPI_MasterTransferCreateHandle</a>(base, &amp;g_m_handle, NULL, NULL);</div><div class="line"></div><div class="line">masterXfer.txData      = masterSendBuffer;</div><div class="line">masterXfer.rxData      = masterReceiveBuffer;</div><div class="line">masterXfer.dataSize    = transfer_dataSize;</div><div class="line">masterXfer.configFlags = <a class="code" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792faf7ddf42278af30a1b81f10c4058ecddd">kDSPI_MasterCtar0</a> | <a class="code" href="group__dspi__driver.html#ggac74dfe19c844271a393314a4fd13792fad51bd34d51062d900b07801e0fd193cc">kDSPI_MasterPcs0</a> ;</div><div class="line"><a class="code" href="group__dspi__driver.html#gab2d0aa3acb2acc3cc5413314d758628b">DSPI_MasterTransferBlocking</a>(base, &amp;g_m_handle, &amp;masterXfer);</div></div><!-- fragment --><h2><a class="anchor" id="DSPISlaveOps"></a>
Slave Operation</h2>
<div class="fragment"><div class="line">dspi_slave_handle_t g_s_handle;<span class="comment">//global variable</span></div><div class="line"><span class="comment">/*Slave config*/</span></div><div class="line">slaveConfig.whichCtar                  = <a class="code" href="group__dspi__driver.html#gga992d5562af4cf4c45371feb8c5c1a1bfadb2a4c8c9b722c6a1b8cbb03b17a6519">kDSPI_Ctar0</a>;</div><div class="line">slaveConfig.ctarConfig.bitsPerFrame    = 8;</div><div class="line">slaveConfig.ctarConfig.cpol            = <a class="code" href="group__dspi__driver.html#gga1e0a9074742794ef89f597d220296651ab5279f36f0c6b1617aa937824806d71d">kDSPI_ClockPolarityActiveHigh</a>;</div><div class="line">slaveConfig.ctarConfig.cpha            = <a class="code" href="group__dspi__driver.html#gga4269ec144334dd60666a92e6fd2c1476a996e921abbf325ee9978a42681aee0d5">kDSPI_ClockPhaseFirstEdge</a>;</div><div class="line">slaveConfig.enableContinuousSCK        = <span class="keyword">false</span>;</div><div class="line">slaveConfig.enableRxFifoOverWrite      = <span class="keyword">false</span>;</div><div class="line">slaveConfig.enableModifiedTimingFormat = <span class="keyword">false</span>;</div><div class="line">slaveConfig.samplePoint                = <a class="code" href="group__dspi__driver.html#ggae783895e2917abe07adbe27a253510a2abbcf84bafbd94a63a9600647162b8d86">kDSPI_SckToSin0Clock</a>;</div><div class="line"><a class="code" href="group__dspi__driver.html#gacf6cecb6b73f02eaa448634a8d705851">DSPI_SlaveInit</a>(base, &amp;slaveConfig);</div><div class="line"></div><div class="line">slaveXfer.txData      = slaveSendBuffer0;</div><div class="line">slaveXfer.rxData      = slaveReceiveBuffer0;</div><div class="line">slaveXfer.dataSize    = transfer_dataSize;</div><div class="line">slaveXfer.configFlags = <a class="code" href="group__dspi__driver.html#gga5070a73633ee72428adda72058f7fb5fa6e63c217f9b392f78fb96ee039c991c8">kDSPI_SlaveCtar0</a>;</div><div class="line"></div><div class="line"><span class="keywordtype">bool</span> isTransferCompleted = <span class="keyword">false</span>;</div><div class="line"><a class="code" href="group__dspi__driver.html#gadc23691aa2c06ae9076a5f0b16f33a8c">DSPI_SlaveTransferCreateHandle</a>(base, &amp;g_s_handle, DSPI_SlaveUserCallback, &amp;isTransferCompleted);</div><div class="line"></div><div class="line"><a class="code" href="group__dspi__driver.html#ga81f85324750f75b8e7248846c88d99e7">DSPI_SlaveTransferNonBlocking</a>(&amp;g_s_handle, &amp;slaveXfer);</div><div class="line"></div><div class="line"></div><div class="line"><span class="comment">//void DSPI_SlaveUserCallback(SPI_Type *base, dspi_slave_handle_t *handle, status_t status, void *isTransferCompleted)</span></div><div class="line"><span class="comment">//{</span></div><div class="line"><span class="comment">//    if (status == kStatus_Success)</span></div><div class="line"><span class="comment">//    {</span></div><div class="line"><span class="comment">//        __NOP();</span></div><div class="line"><span class="comment">//    }</span></div><div class="line"><span class="comment">//    else if (status == kStatus_DSPI_Error)</span></div><div class="line"><span class="comment">//    {</span></div><div class="line"><span class="comment">//        __NOP();</span></div><div class="line"><span class="comment">//    }</span></div><div class="line"><span class="comment">//</span></div><div class="line"><span class="comment">//    *((bool *)isTransferCompleted) = true;</span></div><div class="line"><span class="comment">//</span></div><div class="line"><span class="comment">//    PRINTF(&quot;This is DSPI slave call back . \r\n&quot;);</span></div><div class="line"><span class="comment">//}</span></div></div><!-- fragment --> <hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structdspi__command__data__config__t" id="structdspi__command__data__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct dspi_command_data_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI master command date configuration used for SPIx_PUSHR. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a02c180153476bb2cf8fc561f15672bb9"></a>bool</td>
<td class="fieldname">
clearTransferCount</td>
<td class="fielddoc">
<p>Clears SPI Transfer Counter (SPI_TCNT) before transmission starts. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab8033196bf7f17449d38b1472906c364"></a>bool</td>
<td class="fieldname">
isEndOfQueue</td>
<td class="fielddoc">
<p>Signals that the current transfer is the last in the queue. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aff29f3e26c0e3e8fde31f4614bf857a4"></a>bool</td>
<td class="fieldname">
isPcsContinuous</td>
<td class="fielddoc">
<p>Option to enable the continuous assertion of chip select between transfers. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac45d6c26892c8389409d760b1df1bb6c"></a><a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a></td>
<td class="fieldname">
whichCtar</td>
<td class="fielddoc">
<p>The desired Clock and Transfer Attributes Register (CTAR) to use for CTAS. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a361b1cae3e8ba007b24d3721fc0275d3"></a><a class="el" href="group__dspi__driver.html#ga36d77cff6cfa202e0ff3a05ab4c2a632">dspi_which_pcs_t</a></td>
<td class="fieldname">
whichPcs</td>
<td class="fielddoc">
<p>The desired Pcs signal to use for the data transfer. </p>
</td></tr>
</table>

</div>
</div>
<a name="structdspi__master__ctar__config__t" id="structdspi__master__ctar__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct dspi_master_ctar_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI master ctar config structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab38a80feace530cdca66134f6e3801aa"></a>uint32_t</td>
<td class="fieldname">
baudRate</td>
<td class="fielddoc">
<p>Baud Rate for dspi. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a0c9513415b6b6dc15b32854a9c9d9ef9"></a>uint32_t</td>
<td class="fieldname">
betweenTransferDelayInNanoSec</td>
<td class="fielddoc">
<p>After SCK delay time with nanosecond , set to 0 will set the minimum delay.It woulde set the boundary value if out of range that can be set. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8ccf58110b76fd897fd5861ec36ba249"></a>uint32_t</td>
<td class="fieldname">
bitsPerFrame</td>
<td class="fielddoc">
<p>Bits per frame, minimum 4, maximum 16. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af0d368adbb308408dd5363039987896f"></a><a class="el" href="group__dspi__driver.html#ga4269ec144334dd60666a92e6fd2c1476">dspi_clock_phase_t</a></td>
<td class="fieldname">
cpha</td>
<td class="fielddoc">
<p>Clock phase. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2fe26bcedfe7c42d70ce5937888aedbe"></a><a class="el" href="group__dspi__driver.html#ga1e0a9074742794ef89f597d220296651">dspi_clock_polarity_t</a></td>
<td class="fieldname">
cpol</td>
<td class="fielddoc">
<p>Clock polarity. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a568c1aaf5a6ab0e6d70fbb09e7504ce5"></a><a class="el" href="group__dspi__driver.html#ga06fad8ae17b680f6dddfd798c9d3b30d">dspi_shift_direction_t</a></td>
<td class="fieldname">
direction</td>
<td class="fielddoc">
<p>MSB or LSB data shift direction. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a9aa3ebdf191b0c2147755066f452b9c9"></a>uint32_t</td>
<td class="fieldname">
lastSckToPcsDelayInNanoSec</td>
<td class="fielddoc">
<p>Last SCK to PCS delay time with nanosecond , set to 0 will set the minimum delay.It woulde set the boundary value if out of range that can be set. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a90f1390d2fa2a0e5f08925628f2fb227"></a>uint32_t</td>
<td class="fieldname">
pcsToSckDelayInNanoSec</td>
<td class="fielddoc">
<p>PCS to SCK delay time with nanosecond , set to 0 will set the minimum delay.It woulde set the boundary value if out of range that can be set. </p>
</td></tr>
</table>

</div>
</div>
<a name="structdspi__master__config__t" id="structdspi__master__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct dspi_master_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI master config structure. </p>
</div><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for dspi_master_config_t:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structdspi__master__config__t__coll__graph.svg" width="186" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a5fe0dea438c0a381fbc560248223ceb2"></a><a class="el" href="group__dspi__driver.html#structdspi__master__ctar__config__t">dspi_master_ctar_config_t</a></td>
<td class="fieldname">
ctarConfig</td>
<td class="fielddoc">
<p>Set the ctarConfig to the desired CTAR. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ae5d5a0d257edd52b39bc7eed2789432a"></a>bool</td>
<td class="fieldname">
enableContinuousSCK</td>
<td class="fielddoc">
<p>CONT_SCKE, ctinuous SCK enable . Note that continuous SCK is only supported for CPHA = 1. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a9f5693d8510277f6c97e1cdd64fa2a8b"></a>bool</td>
<td class="fieldname">
enableModifiedTimingFormat</td>
<td class="fielddoc">
<p>Enables a modified transfer format to be used if it's true. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2a901c97793efe41a681b104173bb395"></a>bool</td>
<td class="fieldname">
enableRxFifoOverWrite</td>
<td class="fielddoc">
<p>ROOE, Receive FIFO overflow overwrite enable. ROOE = 0, the incoming data is ignored, the data from the transfer that generated the overflow is either ignored. ROOE = 1, the incoming data is shifted in to the shift to the shift register. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ad782258c2c9e2c728de750dc18f97a29"></a><a class="el" href="group__dspi__driver.html#gab466e73cb54b2c023459d43918c4197d">dspi_pcs_polarity_config_t</a></td>
<td class="fieldname">
pcsActiveHighOrLow</td>
<td class="fielddoc">
<p>Desired PCS active high or low. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8c9eff47b85e5843361534a77d0ec0f4"></a><a class="el" href="group__dspi__driver.html#gae783895e2917abe07adbe27a253510a2">dspi_master_sample_point_t</a></td>
<td class="fieldname">
samplePoint</td>
<td class="fielddoc">
<p>Controls when the module master samples SIN in Modified Transfer Format. It's valid only when CPHA=0. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac45d6c26892c8389409d760b1df1bb6c"></a><a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a></td>
<td class="fieldname">
whichCtar</td>
<td class="fielddoc">
<p>Desired CTAR to use. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a361b1cae3e8ba007b24d3721fc0275d3"></a><a class="el" href="group__dspi__driver.html#ga36d77cff6cfa202e0ff3a05ab4c2a632">dspi_which_pcs_t</a></td>
<td class="fieldname">
whichPcs</td>
<td class="fielddoc">
<p>Desired Peripheral Chip Select (pcs). </p>
</td></tr>
</table>

</div>
</div>
<a name="structdspi__slave__ctar__config__t" id="structdspi__slave__ctar__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct dspi_slave_ctar_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI slave ctar configuration structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8ccf58110b76fd897fd5861ec36ba249"></a>uint32_t</td>
<td class="fieldname">
bitsPerFrame</td>
<td class="fielddoc">
<p>Bits per frame, minimum 4, maximum 16. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af0d368adbb308408dd5363039987896f"></a><a class="el" href="group__dspi__driver.html#ga4269ec144334dd60666a92e6fd2c1476">dspi_clock_phase_t</a></td>
<td class="fieldname">
cpha</td>
<td class="fielddoc">
<p>Clock phase. Slave only supports MSB , does not support LSB. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2fe26bcedfe7c42d70ce5937888aedbe"></a><a class="el" href="group__dspi__driver.html#ga1e0a9074742794ef89f597d220296651">dspi_clock_polarity_t</a></td>
<td class="fieldname">
cpol</td>
<td class="fielddoc">
<p>Clock polarity. </p>
</td></tr>
</table>

</div>
</div>
<a name="structdspi__slave__config__t" id="structdspi__slave__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct dspi_slave_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI slave configuration structure. </p>
</div><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Collaboration diagram for dspi_slave_config_t:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structdspi__slave__config__t__coll__graph.svg" width="174" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a7490b2e3f16c334bcd2d686b895eb634"></a><a class="el" href="group__dspi__driver.html#structdspi__slave__ctar__config__t">dspi_slave_ctar_config_t</a></td>
<td class="fieldname">
ctarConfig</td>
<td class="fielddoc">
<p>Set the ctarConfig to the desired CTAR. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ae5d5a0d257edd52b39bc7eed2789432a"></a>bool</td>
<td class="fieldname">
enableContinuousSCK</td>
<td class="fielddoc">
<p>CONT_SCKE, continuous SCK enable. Note that continuous SCK is only supported for CPHA = 1. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a9f5693d8510277f6c97e1cdd64fa2a8b"></a>bool</td>
<td class="fieldname">
enableModifiedTimingFormat</td>
<td class="fielddoc">
<p>Enables a modified transfer format to be used if it's true. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2a901c97793efe41a681b104173bb395"></a>bool</td>
<td class="fieldname">
enableRxFifoOverWrite</td>
<td class="fielddoc">
<p>ROOE, Receive FIFO overflow overwrite enable. ROOE = 0, the incoming data is ignored, the data from the transfer that generated the overflow is either ignored. ROOE = 1, the incoming data is shifted in to the shift to the shift register. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8c9eff47b85e5843361534a77d0ec0f4"></a><a class="el" href="group__dspi__driver.html#gae783895e2917abe07adbe27a253510a2">dspi_master_sample_point_t</a></td>
<td class="fieldname">
samplePoint</td>
<td class="fielddoc">
<p>Controls when the module master samples SIN in Modified Transfer Format. It's valid only when CPHA=0. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac45d6c26892c8389409d760b1df1bb6c"></a><a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a></td>
<td class="fieldname">
whichCtar</td>
<td class="fielddoc">
<p>Desired CTAR to use. </p>
</td></tr>
</table>

</div>
</div>
<a name="structdspi__transfer__t" id="structdspi__transfer__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct dspi_transfer_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI master/slave transfer structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8f596820084347c93c458b7553bdd067"></a>uint32_t</td>
<td class="fieldname">
configFlags</td>
<td class="fielddoc">
<p>Transfer transfer configuration flags , set from _dspi_transfer_config_flag_for_master if the transfer is used for master or _dspi_transfer_config_flag_for_slave enumeration if the transfer is used for slave. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aec81567ca73e5b0cb790098785e345c5"></a>volatile size_t</td>
<td class="fieldname">
dataSize</td>
<td class="fielddoc">
<p>Transfer bytes. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab83c0e07099df7beb8e491cb91914de0"></a>uint8_t *</td>
<td class="fieldname">
rxData</td>
<td class="fielddoc">
<p>Receive buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a03c054bb486fb65133eb9f6849266fb1"></a>uint8_t *</td>
<td class="fieldname">
txData</td>
<td class="fielddoc">
<p>Send buffer. </p>
</td></tr>
</table>

</div>
</div>
<a name="struct__dspi__master__handle" id="struct__dspi__master__handle"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct _dspi_master_handle</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI master transfer handle structure used for transactional API. </p>
<p>Forward declaration of the <a class="el" href="group__dspi__driver.html#struct__dspi__master__handle" title="DSPI master transfer handle structure used for transactional API. ">_dspi_master_handle</a> typedefs. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8ccf58110b76fd897fd5861ec36ba249"></a>uint32_t</td>
<td class="fieldname">
bitsPerFrame</td>
<td class="fielddoc">
<p>Desired number of bits per frame. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a115587f06105cf3be353829d0773cb88"></a><a class="el" href="group__dspi__driver.html#ga67d91a817bd68468037b7886ea710ffa">dspi_master_transfer_callback_t</a></td>
<td class="fieldname">
callback</td>
<td class="fielddoc">
<p>Completion callback. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aaa54e50f47525ba537305a7e551fee60"></a>volatile uint32_t</td>
<td class="fieldname">
command</td>
<td class="fielddoc">
<p>Desired data command. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a4c97b51607a7c04eda98c14c23790886"></a>uint8_t</td>
<td class="fieldname">
fifoSize</td>
<td class="fielddoc">
<p>FIFO dataSize. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a7987be6f0a72e67b2d5f35032409cb62"></a>volatile bool</td>
<td class="fieldname">
isPcsActiveAfterTransfer</td>
<td class="fielddoc">
<p>Is PCS signal keep active after the last frame transfer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af01b42dfc4c4be3e12be53f4721b6e5a"></a>volatile bool</td>
<td class="fieldname">
isThereExtraByte</td>
<td class="fielddoc">
<p>Is there extra byte. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab21067b70770d32bdc79e90f9a23a9ef"></a>volatile uint32_t</td>
<td class="fieldname">
lastCommand</td>
<td class="fielddoc">
<p>Desired last data command. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="afeddb18283b63e45997bdd7cae9a698e"></a>volatile size_t</td>
<td class="fieldname">
remainingReceiveByteCount</td>
<td class="fielddoc">
<p>Number of bytes remaining to receive. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a661e4144b993ca2af794daa53e21f35a"></a>volatile size_t</td>
<td class="fieldname">
remainingSendByteCount</td>
<td class="fielddoc">
<p>Number of bytes remaining to send. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa58335de5bfa8923228432b62ea9308a"></a>uint8_t *volatile</td>
<td class="fieldname">
rxData</td>
<td class="fielddoc">
<p>Receive buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a06fcd46097cb1779eaa383a6419cd27d"></a>volatile uint8_t</td>
<td class="fieldname">
state</td>
<td class="fielddoc">
<p>DSPI transfer state , _dspi_transfer_state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a4ae9e659b40b257243e623c3ded3389d"></a>size_t</td>
<td class="fieldname">
totalByteCount</td>
<td class="fielddoc">
<p>Number of transfer bytes </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab56d8f300582ce9d7f4a79729124739d"></a>uint8_t *volatile</td>
<td class="fieldname">
txData</td>
<td class="fielddoc">
<p>Send buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2e294dd14122c554baa0665072b4ca7a"></a>void *</td>
<td class="fieldname">
userData</td>
<td class="fielddoc">
<p>Callback user data. </p>
</td></tr>
</table>

</div>
</div>
<a name="struct__dspi__slave__handle" id="struct__dspi__slave__handle"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct _dspi_slave_handle</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>DSPI slave transfer handle structure used for transactional API. </p>
<p>Forward declaration of the <a class="el" href="group__dspi__driver.html#struct__dspi__slave__handle" title="DSPI slave transfer handle structure used for transactional API. ">_dspi_slave_handle</a> typedefs. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8ccf58110b76fd897fd5861ec36ba249"></a>uint32_t</td>
<td class="fieldname">
bitsPerFrame</td>
<td class="fielddoc">
<p>Desired number of bits per frame. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8bc7658408095ef17f84258b570673ac"></a><a class="el" href="group__dspi__driver.html#gaf928cd95fbb7eb5d5f306c9a4d4afce4">dspi_slave_transfer_callback_t</a></td>
<td class="fieldname">
callback</td>
<td class="fielddoc">
<p>Completion callback. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2a11c9c06fe4f8a45030f131e5800ae4"></a>volatile uint32_t</td>
<td class="fieldname">
errorCount</td>
<td class="fielddoc">
<p>Error count for slave transfer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af01b42dfc4c4be3e12be53f4721b6e5a"></a>volatile bool</td>
<td class="fieldname">
isThereExtraByte</td>
<td class="fielddoc">
<p>Is there extra byte. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="afeddb18283b63e45997bdd7cae9a698e"></a>volatile size_t</td>
<td class="fieldname">
remainingReceiveByteCount</td>
<td class="fielddoc">
<p>Number of bytes remaining to receive. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a661e4144b993ca2af794daa53e21f35a"></a>volatile size_t</td>
<td class="fieldname">
remainingSendByteCount</td>
<td class="fielddoc">
<p>Number of bytes remaining to send. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa58335de5bfa8923228432b62ea9308a"></a>uint8_t *volatile</td>
<td class="fieldname">
rxData</td>
<td class="fielddoc">
<p>Receive buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a06fcd46097cb1779eaa383a6419cd27d"></a>volatile uint8_t</td>
<td class="fieldname">
state</td>
<td class="fielddoc">
<p>DSPI transfer state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a4ae9e659b40b257243e623c3ded3389d"></a>size_t</td>
<td class="fieldname">
totalByteCount</td>
<td class="fielddoc">
<p>Number of transfer bytes </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab56d8f300582ce9d7f4a79729124739d"></a>uint8_t *volatile</td>
<td class="fieldname">
txData</td>
<td class="fielddoc">
<p>Send buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2e294dd14122c554baa0665072b4ca7a"></a>void *</td>
<td class="fieldname">
userData</td>
<td class="fielddoc">
<p>Callback user data. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga67d91a817bd68468037b7886ea710ffa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* dspi_master_transfer_callback_t) (SPI_Type *base, dspi_master_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, void *userData)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Completion callback function pointer type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">handle</td><td>Pointer to the handle for the DSPI master. </td></tr>
    <tr><td class="paramname">status</td><td>Success or error code describing whether the transfer completed. </td></tr>
    <tr><td class="paramname">userData</td><td>Arbitrary pointer-dataSized value passed from the application. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf928cd95fbb7eb5d5f306c9a4d4afce4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* dspi_slave_transfer_callback_t) (SPI_Type *base, dspi_slave_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, void *userData)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Completion callback function pointer type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">handle</td><td>Pointer to the handle for the DSPI slave. </td></tr>
    <tr><td class="paramname">status</td><td>Success or error code describing whether the transfer completed. </td></tr>
    <tr><td class="paramname">userData</td><td>Arbitrary pointer-dataSized value passed from the application. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="gae3359796dc0680797b1f74b83fc0c0d9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#gae3359796dc0680797b1f74b83fc0c0d9">_dspi_dma_enable</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI DMA source. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggae3359796dc0680797b1f74b83fc0c0d9ae772dc49e5a28df00b817f9c6dab0749"></a>kDSPI_TxDmaEnable&#160;</td><td class="fielddoc">
<p>TFFF flag generates DMA requests. No Tx interrupt request. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae3359796dc0680797b1f74b83fc0c0d9a15ec9c9897199d53a1b354ccce6d0445"></a>kDSPI_RxDmaEnable&#160;</td><td class="fielddoc">
<p>RFDF flag generates DMA requests. No Rx interrupt request. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga2bfefaf6ba65ba464e764d1c918c904f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga2bfefaf6ba65ba464e764d1c918c904f">_dspi_flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI status flags in SPIx_SR register. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904faffc8e8711d9083470cddb0db647b75b0"></a>kDSPI_TxCompleteFlag&#160;</td><td class="fielddoc">
<p>Transfer Complete Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904fae91c7a5cc2a90fa051c89f13bbb6d8ed"></a>kDSPI_EndOfQueueFlag&#160;</td><td class="fielddoc">
<p>End of Queue Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904fae36215137d8ce7cf215349199db877b7"></a>kDSPI_TxFifoUnderflowFlag&#160;</td><td class="fielddoc">
<p>Transmit FIFO Underflow Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904fae9704d53b57758969f8ea5ea6c86f7f0"></a>kDSPI_TxFifoFillRequestFlag&#160;</td><td class="fielddoc">
<p>Transmit FIFO Fill Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904fa30f039adca01f89dbbd02f70dff725ee"></a>kDSPI_RxFifoOverflowFlag&#160;</td><td class="fielddoc">
<p>Receive FIFO Overflow Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904fa092b7f39357ce8cb82ec825e93536605"></a>kDSPI_RxFifoDrainRequestFlag&#160;</td><td class="fielddoc">
<p>Receive FIFO Drain Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904fa58771b3977aef221dab6a67a6739f8d6"></a>kDSPI_TxAndRxStatusFlag&#160;</td><td class="fielddoc">
<p>The module is in Stopped/Running state. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga2bfefaf6ba65ba464e764d1c918c904fa4a742818251256d8fc35ab63a6af9c9e"></a>kDSPI_AllStatusFlag&#160;</td><td class="fielddoc">
<p>All status above. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gaeb57298690a2f1a09d94d696c893c4b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#gaeb57298690a2f1a09d94d696c893c4b2">_dspi_interrupt_enable</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI interrupt source. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggaeb57298690a2f1a09d94d696c893c4b2ab2b1ba228fd75de23a2de7e56c1ee438"></a>kDSPI_TxCompleteInterruptEnable&#160;</td><td class="fielddoc">
<p>TCF interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaeb57298690a2f1a09d94d696c893c4b2a069483b28469fcbfa5890b04cd6439b3"></a>kDSPI_EndOfQueueInterruptEnable&#160;</td><td class="fielddoc">
<p>EOQF interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaeb57298690a2f1a09d94d696c893c4b2aa430e623e0bb240752381eaddda1a973"></a>kDSPI_TxFifoUnderflowInterruptEnable&#160;</td><td class="fielddoc">
<p>TFUF interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaeb57298690a2f1a09d94d696c893c4b2ada57830661d523d12e49892060fde201"></a>kDSPI_TxFifoFillRequestInterruptEnable&#160;</td><td class="fielddoc">
<p>TFFF interrupt enable, DMA disable. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaeb57298690a2f1a09d94d696c893c4b2a190746a0aeaa61db32c6c1a7b850d0ee"></a>kDSPI_RxFifoOverflowInterruptEnable&#160;</td><td class="fielddoc">
<p>RFOF interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaeb57298690a2f1a09d94d696c893c4b2aa7d99e6ac31bd6c7d835d89f36cec1a6"></a>kDSPI_RxFifoDrainRequestInterruptEnable&#160;</td><td class="fielddoc">
<p>RFDF interrupt enable, DMA disable. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaeb57298690a2f1a09d94d696c893c4b2a530d972d6cd16ab6e929d7ddaaf09b30"></a>kDSPI_AllInterruptEnable&#160;</td><td class="fielddoc">
<p>All above interrupts enable. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gad23a66cefb04826de83504ad485f19a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#gad23a66cefb04826de83504ad485f19a9">_dspi_pcs_polarity</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI Peripheral Chip Select (Pcs) Polarity. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggad23a66cefb04826de83504ad485f19a9ac731b21eefcc16342d2c606a12a00547"></a>kDSPI_Pcs0ActiveLow&#160;</td><td class="fielddoc">
<p>Pcs0 Active Low (idles high). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggad23a66cefb04826de83504ad485f19a9aa6ee5dca40cbe9bf03623cf986adbadd"></a>kDSPI_Pcs1ActiveLow&#160;</td><td class="fielddoc">
<p>Pcs1 Active Low (idles high). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggad23a66cefb04826de83504ad485f19a9a6fd76d22cb6c8f943ae397bb91ba68f4"></a>kDSPI_Pcs2ActiveLow&#160;</td><td class="fielddoc">
<p>Pcs2 Active Low (idles high). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggad23a66cefb04826de83504ad485f19a9a57e33d7e4195864f89db11d2f5e6cc4b"></a>kDSPI_Pcs3ActiveLow&#160;</td><td class="fielddoc">
<p>Pcs3 Active Low (idles high). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggad23a66cefb04826de83504ad485f19a9a15c201d8e7bd0bab1dd7117b73a111ec"></a>kDSPI_Pcs4ActiveLow&#160;</td><td class="fielddoc">
<p>Pcs4 Active Low (idles high). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggad23a66cefb04826de83504ad485f19a9a88e1e00a5a7755561358f004a5a1b1d4"></a>kDSPI_Pcs5ActiveLow&#160;</td><td class="fielddoc">
<p>Pcs5 Active Low (idles high). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggad23a66cefb04826de83504ad485f19a9adb2bef5058b4bf00533cc89f1928e2d1"></a>kDSPI_PcsAllActiveLow&#160;</td><td class="fielddoc">
<p>Pcs0 to Pcs5 Active Low (idles high). </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga06b41ab984bc03e6f1eb07988edcb3ea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga06b41ab984bc03e6f1eb07988edcb3ea">_dspi_status</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Status for the DSPI driver. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga06b41ab984bc03e6f1eb07988edcb3eaad5ecc8346da4119b8609c6bcb4c57e40"></a>kStatus_DSPI_Busy&#160;</td><td class="fielddoc">
<p>DSPI transfer is busy. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga06b41ab984bc03e6f1eb07988edcb3eaaaae2ba17a6a622142816b0ffec7b9f7a"></a>kStatus_DSPI_Error&#160;</td><td class="fielddoc">
<p>DSPI driver error. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga06b41ab984bc03e6f1eb07988edcb3eaa638dc0d050e7660225a46cc7cd6e38c7"></a>kStatus_DSPI_Idle&#160;</td><td class="fielddoc">
<p>DSPI is idle. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga06b41ab984bc03e6f1eb07988edcb3eaac1713712f0410e28da008d714734a6bd"></a>kStatus_DSPI_OutOfRange&#160;</td><td class="fielddoc">
<p>DSPI transfer out Of range. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gac74dfe19c844271a393314a4fd13792f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#gac74dfe19c844271a393314a4fd13792f">_dspi_transfer_config_flag_for_master</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Can use this enum for DSPI master transfer configFlags. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792faf7ddf42278af30a1b81f10c4058ecddd"></a>kDSPI_MasterCtar0&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR0 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa57508605f5d5fb0a2fb7eddfcdb89f12"></a>kDSPI_MasterCtar1&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR1 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa6cf50df8fd75f5be1347efcaec8a68f4"></a>kDSPI_MasterCtar2&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR2 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa70471fdf900dba881f4e742d303d307c"></a>kDSPI_MasterCtar3&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR3 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792faad989e96bfed1f2fbb0fcc3adb99d04b"></a>kDSPI_MasterCtar4&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR4 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa5c3dbe0ddb8e9f3f67496592ef3ec902"></a>kDSPI_MasterCtar5&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR5 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa5e898da1cd4e093f048f947bc751b7fa"></a>kDSPI_MasterCtar6&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR6 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa90cf553b9933d1e3d692469e0fa5ddc3"></a>kDSPI_MasterCtar7&#160;</td><td class="fielddoc">
<p>DSPI master transfer use CTAR7 setting. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fad51bd34d51062d900b07801e0fd193cc"></a>kDSPI_MasterPcs0&#160;</td><td class="fielddoc">
<p>DSPI master transfer use PCS0 signal. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fad07c95fafd30869cb6110d4ea3ed7ca1"></a>kDSPI_MasterPcs1&#160;</td><td class="fielddoc">
<p>DSPI master transfer use PCS1 signal. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa116fef8c0a72727a80e72e1d1d0d0ffc"></a>kDSPI_MasterPcs2&#160;</td><td class="fielddoc">
<p>DSPI master transfer use PCS2 signal. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa2266cc2ddbf05da3164fa6ad680facd9"></a>kDSPI_MasterPcs3&#160;</td><td class="fielddoc">
<p>DSPI master transfer use PCS3 signal. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa3b32f4a57a5aaaaf0064d7ec1373a154"></a>kDSPI_MasterPcs4&#160;</td><td class="fielddoc">
<p>DSPI master transfer use PCS4 signal. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa8047faff72926a57c0659f4147787353"></a>kDSPI_MasterPcs5&#160;</td><td class="fielddoc">
<p>DSPI master transfer use PCS5 signal. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa8309b1b52bbaa930bbcc3e2407f1a6f5"></a>kDSPI_MasterPcsContinuous&#160;</td><td class="fielddoc">
<p>Is PCS signal continuous. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac74dfe19c844271a393314a4fd13792fa458df11cc493759474f31873cfa8d4c1"></a>kDSPI_MasterActiveAfterTransfer&#160;</td><td class="fielddoc">
<p>Is PCS signal active after last frame transfer. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga5070a73633ee72428adda72058f7fb5f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga5070a73633ee72428adda72058f7fb5f">_dspi_transfer_config_flag_for_slave</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Can use this enum for DSPI slave transfer configFlags. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga5070a73633ee72428adda72058f7fb5fa6e63c217f9b392f78fb96ee039c991c8"></a>kDSPI_SlaveCtar0&#160;</td><td class="fielddoc">
<p>DSPI slave transfer use CTAR0 setting. DSPI slave can only use PCS0. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga97c65523863f89cddbf06691c678a7f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga97c65523863f89cddbf06691c678a7f9">_dspi_transfer_state</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI transfer state, which is used for DSPI transactiaonl APIs' state machine. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga97c65523863f89cddbf06691c678a7f9ae739fb0dabff3a7cb72c39eef943a373"></a>kDSPI_Idle&#160;</td><td class="fielddoc">
<p>Nothing in the transmitter/receiver. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga97c65523863f89cddbf06691c678a7f9a4b636d65ab83d136e81ed31e30de4429"></a>kDSPI_Busy&#160;</td><td class="fielddoc">
<p>Transfer queue is not finished. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga97c65523863f89cddbf06691c678a7f9a6d94f11a50f542371683efe9ea22efb9"></a>kDSPI_Error&#160;</td><td class="fielddoc">
<p>Transfer error. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga4269ec144334dd60666a92e6fd2c1476"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga4269ec144334dd60666a92e6fd2c1476">dspi_clock_phase_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI clock phase configuration for a given CTAR. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga4269ec144334dd60666a92e6fd2c1476a996e921abbf325ee9978a42681aee0d5"></a>kDSPI_ClockPhaseFirstEdge&#160;</td><td class="fielddoc">
<p>CPHA=0. Data is captured on the leading edge of the SCK and changed on the following edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga4269ec144334dd60666a92e6fd2c1476a43ee643e847b3118e38da0a9811d97f9"></a>kDSPI_ClockPhaseSecondEdge&#160;</td><td class="fielddoc">
<p>CPHA=1. Data is changed on the leading edge of the SCK and captured on the following edge. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga1e0a9074742794ef89f597d220296651"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga1e0a9074742794ef89f597d220296651">dspi_clock_polarity_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI clock polarity configuration for a given CTAR. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga1e0a9074742794ef89f597d220296651ab5279f36f0c6b1617aa937824806d71d"></a>kDSPI_ClockPolarityActiveHigh&#160;</td><td class="fielddoc">
<p>CPOL=0. Active-high DSPI clock (idles low). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga1e0a9074742794ef89f597d220296651abcde58b8834e5cd1181b8b98aa4a10ef"></a>kDSPI_ClockPolarityActiveLow&#160;</td><td class="fielddoc">
<p>CPOL=1. Active-low DSPI clock (idles high). </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga992d5562af4cf4c45371feb8c5c1a1bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI Clock and Transfer Attributes Register (CTAR) selection. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfadb2a4c8c9b722c6a1b8cbb03b17a6519"></a>kDSPI_Ctar0&#160;</td><td class="fielddoc">
<p>CTAR0 selection option for master or slave mode, note that CTAR0 and CTAR0_SLAVE are the same register address. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfad6db3f5779fd74fdfa9bda2375573227"></a>kDSPI_Ctar1&#160;</td><td class="fielddoc">
<p>CTAR1 selection option for master mode only. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfa406d09f42f5e009617a40f4c30cc10d9"></a>kDSPI_Ctar2&#160;</td><td class="fielddoc">
<p>CTAR2 selection option for master mode only , note that some device do not support CTAR2. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfaf1df973bc8d89efbfb8d7bff51af0265"></a>kDSPI_Ctar3&#160;</td><td class="fielddoc">
<p>CTAR3 selection option for master mode only , note that some device do not support CTAR3. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfa13960000166ae1cc18b19f5c4c9405ff"></a>kDSPI_Ctar4&#160;</td><td class="fielddoc">
<p>CTAR4 selection option for master mode only , note that some device do not support CTAR4. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfad0b231829a94051ce913cd367135c1f2"></a>kDSPI_Ctar5&#160;</td><td class="fielddoc">
<p>CTAR5 selection option for master mode only , note that some device do not support CTAR5. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfaa7bb6aaabeb65811e58af0460c38e373"></a>kDSPI_Ctar6&#160;</td><td class="fielddoc">
<p>CTAR6 selection option for master mode only , note that some device do not support CTAR6. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga992d5562af4cf4c45371feb8c5c1a1bfa6ae1a9c5243a507f36c3db1ef14c216e"></a>kDSPI_Ctar7&#160;</td><td class="fielddoc">
<p>CTAR7 selection option for master mode only , note that some device do not support CTAR7. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga1ca2fbee37b3cb046c075a7e765d64ed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga1ca2fbee37b3cb046c075a7e765d64ed">dspi_delay_type_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI delay type selection. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga1ca2fbee37b3cb046c075a7e765d64eda71185ae0d4d9dd61acbc69bce93f33f5"></a>kDSPI_PcsToSck&#160;</td><td class="fielddoc">
<p>Pcs-to-SCK delay. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga1ca2fbee37b3cb046c075a7e765d64edaa2ce775b9575a3870ce82b8444b9d56c"></a>kDSPI_LastSckToPcs&#160;</td><td class="fielddoc">
<p>Last SCK edge to Pcs delay. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga1ca2fbee37b3cb046c075a7e765d64eda83ed3f05b8a61f94c0da066c1ded7a1e"></a>kDSPI_BetweenTransfer&#160;</td><td class="fielddoc">
<p>Delay between transfers. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gae783895e2917abe07adbe27a253510a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#gae783895e2917abe07adbe27a253510a2">dspi_master_sample_point_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI Sample Point: Controls when the DSPI master samples SIN in Modified Transfer Format. This field is valid only when CPHA bit in CTAR register is 0. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggae783895e2917abe07adbe27a253510a2abbcf84bafbd94a63a9600647162b8d86"></a>kDSPI_SckToSin0Clock&#160;</td><td class="fielddoc">
<p>0 system clocks between SCK edge and SIN sample. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae783895e2917abe07adbe27a253510a2a61e5f5d7122c849c737513ae7c5c4c50"></a>kDSPI_SckToSin1Clock&#160;</td><td class="fielddoc">
<p>1 system clock between SCK edge and SIN sample. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae783895e2917abe07adbe27a253510a2a305d68c9446ca0866da7a2ace743ae4d"></a>kDSPI_SckToSin2Clock&#160;</td><td class="fielddoc">
<p>2 system clocks between SCK edge and SIN sample. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gad7f974015f32db057dafada8b95641aa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#gad7f974015f32db057dafada8b95641aa">dspi_master_slave_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI master or slave mode configuration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggad7f974015f32db057dafada8b95641aaa8330c6ad827da3c783df5805244fa7d9"></a>kDSPI_Master&#160;</td><td class="fielddoc">
<p>DSPI peripheral operates in master mode. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggad7f974015f32db057dafada8b95641aaa2e075745386fd71bee2535606f29dd87"></a>kDSPI_Slave&#160;</td><td class="fielddoc">
<p>DSPI peripheral operates in slave mode. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gab466e73cb54b2c023459d43918c4197d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#gab466e73cb54b2c023459d43918c4197d">dspi_pcs_polarity_config_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI Peripheral Chip Select (Pcs) Polarity configuration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggab466e73cb54b2c023459d43918c4197da79a6807edd30a1230477ab26068060fd"></a>kDSPI_PcsActiveHigh&#160;</td><td class="fielddoc">
<p>Pcs Active High (idles low). </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggab466e73cb54b2c023459d43918c4197daa678a5937bbb9975e3c014592c3d542c"></a>kDSPI_PcsActiveLow&#160;</td><td class="fielddoc">
<p>Pcs Active Low (idles high). </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga06fad8ae17b680f6dddfd798c9d3b30d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga06fad8ae17b680f6dddfd798c9d3b30d">dspi_shift_direction_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI data shifter direction options for a given CTAR. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga06fad8ae17b680f6dddfd798c9d3b30da8885a916a15d0b97ffd0f28d81242f6f"></a>kDSPI_MsbFirst&#160;</td><td class="fielddoc">
<p>Data transfers start with most significant bit. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga06fad8ae17b680f6dddfd798c9d3b30da76701314fa7dbd70e4011feb326b9050"></a>kDSPI_LsbFirst&#160;</td><td class="fielddoc">
<p>Data transfers start with least significant bit. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga36d77cff6cfa202e0ff3a05ab4c2a632"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__dspi__driver.html#ga36d77cff6cfa202e0ff3a05ab4c2a632">dspi_which_pcs_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI Peripheral Chip Select (Pcs) configuration (which Pcs to configure). </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga36d77cff6cfa202e0ff3a05ab4c2a632a5c6297be9586ee874fa1a84a16d810b7"></a>kDSPI_Pcs0&#160;</td><td class="fielddoc">
<p>Pcs[0] </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga36d77cff6cfa202e0ff3a05ab4c2a632a62d3c43292cebeed478a36bff2cd033a"></a>kDSPI_Pcs1&#160;</td><td class="fielddoc">
<p>Pcs[1] </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga36d77cff6cfa202e0ff3a05ab4c2a632a625c90d5151e8458be6f89ace68f2fe2"></a>kDSPI_Pcs2&#160;</td><td class="fielddoc">
<p>Pcs[2] </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga36d77cff6cfa202e0ff3a05ab4c2a632a7fae848c0f775a86562b90ecfd171cc8"></a>kDSPI_Pcs3&#160;</td><td class="fielddoc">
<p>Pcs[3] </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga36d77cff6cfa202e0ff3a05ab4c2a632a0fd968cdbfd2e088987e309f49cb20f2"></a>kDSPI_Pcs4&#160;</td><td class="fielddoc">
<p>Pcs[4] </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga36d77cff6cfa202e0ff3a05ab4c2a632a67653d39cbd675c9141bb014d4576a0b"></a>kDSPI_Pcs5&#160;</td><td class="fielddoc">
<p>Pcs[5] </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga11454768ad4c96b65b298cccf1f0401c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_ClearStatusFlags </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>statusFlags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clears the DSPI status flag. </p>
<p>This function clears the desired status bit by using a write-1-to-clear. The user passes in the base and the desired status bit to clear. The list of status bits is defined in the dspi_status_and_interrupt_request_t. The function uses these bit positions in its algorithm to clear the desired flag state. Example usage: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;DSPI_ClearStatusFlags(base, kDSPI_TxCompleteFlag|kDSPI_EndOfQueueFlag);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">statusFlags</td><td>The status flag , used from type dspi_flags. </td></tr>
  </table>
  </dd>
</dl>
<p>&lt; The status flags are cleared by writing 1 (w1c). </p>

</div>
</div>
<a class="anchor" id="gaa669bb8f6438b1d4f7ec38ba180653fa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_Deinit </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the DSPI peripheral. Call this API to disable the DSPI clock. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga543b12952cb5ac404ebbdaa572628c8e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_DisableDMA </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disables the DSPI DMA request. </p>
<p>This function configures the Rx and Tx DMA mask of the DSPI. The parameters are base and a DMA mask. </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;SPI_DisableDMA(base, kDSPI_TxDmaEnable | kDSPI_RxDmaEnable);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupt mask can use the enum dspi_dma_enable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gabf5c4ec1216387b8c476853e45a9bfeb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_DisableInterrupts </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disables the DSPI interrupts. </p>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;DSPI_DisableInterrupts(base, kDSPI_TxCompleteInterruptEnable | kDSPI_EndOfQueueInterruptEnable );</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupt mask, can use the enum _dspi_interrupt_enable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga38a2ee1ed351246ebbdc4b242b835164"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_Enable </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables the DSPI peripheral and sets the MCR MDIS to 0. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">enable</td><td>pass true to enable module, false to disable module. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga313d41fd54ca75781bb7596b319d4849"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_EnableDMA </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables the DSPI DMA request. </p>
<p>This function configures the Rx and Tx DMA mask of the DSPI. The parameters are base and a DMA mask. </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;DSPI_EnableDMA(base, kDSPI_TxDmaEnable | kDSPI_RxDmaEnable);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupt mask can use the enum dspi_dma_enable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga9b9e4c8ae54ea108952c80940e11b3a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_EnableInterrupts </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the DSPI interrupts. </p>
<p>This function configures the various interrupt masks of the DSPI. The parameters are base and an interrupt mask. Note, for Tx Fill and Rx FIFO drain requests, enable the interrupt request and disable the DMA request.</p>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;DSPI_EnableInterrupts(base, kDSPI_TxCompleteInterruptEnable | kDSPI_EndOfQueueInterruptEnable );</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupt mask, can use the enum _dspi_interrupt_enable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga3cbb532b5bd6981f5cc0115f49a9ee9a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_FlushFifo </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>flushTxFifo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>flushRxFifo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flushes the DSPI FIFOs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">flushTxFifo</td><td>Flushes (true) the Tx FIFO, else do not flush (false) the Tx FIFO </td></tr>
    <tr><td class="paramname">flushRxFifo</td><td>Flushes (true) the Rx FIFO, else do not flush (false) the Rx FIFO </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad9f3df616e7284696af57cce8f49899e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_GetDefaultDataCommandConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *&#160;</td>
          <td class="paramname"><em>command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the <a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t" title="DSPI master command date configuration used for SPIx_PUSHR. ">dspi_command_data_config_t</a> structure to default values. </p>
<p>The purpose of this API is to get the configuration structure initialized for use in the DSPI_MasterWrite_xx(). User may use the initialized structure unchanged in DSPI_MasterWrite_xx() or modify the structure before calling DSPI_MasterWrite_xx(). Example: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dspi_command_data_config_t  command;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;DSPI_GetDefaultDataCommandConfig(&amp;command);</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>pointer to <a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t" title="DSPI master command date configuration used for SPIx_PUSHR. ">dspi_command_data_config_t</a> structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0d2bcb0a744852ab2701466a7fd974f6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t DSPI_GetRxRegisterAddress </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the DSPI POPR data register address for the DMA operation. </p>
<p>This function gets the DSPI POPR data register address as this value is needed for the DMA operation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The DSPI POPR data register address. </dd></dl>

</div>
</div>
<a class="anchor" id="ga11005216bf792c91894d9e670b0323f8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t DSPI_GetStatusFlags </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the DSPI status flag state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The DSPI status(in SR register). </dd></dl>

</div>
</div>
<a class="anchor" id="gae606c91960692b493d17d067c38d67b3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool DSPI_IsMaster </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns whether the DSPI module is in master mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns true if the module is in master mode or false if the module is in slave mode. </dd></dl>

</div>
</div>
<a class="anchor" id="ga0061c90bc787dc1faffde79cb256e8a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterGetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__master__config__t">dspi_master_config_t</a> *&#160;</td>
          <td class="paramname"><em>masterConfig</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the <a class="el" href="group__dspi__driver.html#structdspi__master__config__t" title="DSPI master config structure. ">dspi_master_config_t</a> structure to default values. </p>
<p>The purpose of this API is to get the configuration structure initialized for the <a class="el" href="group__dspi__driver.html#gaadf23f732f4c1b61d6634bd17b1a36d7" title="Initializes the DSPI master. ">DSPI_MasterInit()</a>. User may use the initialized structure unchanged in <a class="el" href="group__dspi__driver.html#gaadf23f732f4c1b61d6634bd17b1a36d7" title="Initializes the DSPI master. ">DSPI_MasterInit()</a> or modify the structure before calling <a class="el" href="group__dspi__driver.html#gaadf23f732f4c1b61d6634bd17b1a36d7" title="Initializes the DSPI master. ">DSPI_MasterInit()</a>. Example: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dspi_master_config_t  masterConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;DSPI_MasterGetDefaultConfig(&amp;masterConfig);</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">masterConfig</td><td>pointer to <a class="el" href="group__dspi__driver.html#structdspi__master__config__t" title="DSPI master config structure. ">dspi_master_config_t</a> structure </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4068b27da40c419a700badf2070fc5e4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t DSPI_MasterGetFormattedCommand </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *&#160;</td>
          <td class="paramname"><em>command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the DSPI command word formatted to the PUSHR data register bit field. </p>
<p>This function allows the caller to pass in the data command structure and returns the command word formatted according to the DSPI PUSHR register bit field placement. The user can then "OR" the returned command word with the desired data to send and use the function DSPI_HAL_WriteCommandDataMastermode or DSPI_HAL_WriteCommandDataMastermodeBlocking to write the entire 32-bit command data word to the PUSHR. This helps improve performance in cases where the command structure is constant. For example, the user calls this function before starting a transfer to generate the command word. When they are ready to transmit the data, they would OR this formatted command word with the desired data to transmit. This process increases transmit performance when compared to calling send functions such as DSPI_HAL_WriteDataMastermode which format the command word each time a data word is to be sent.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>Pointer to command structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The command word formatted to the PUSHR data register bit field. </dd></dl>

</div>
</div>
<a class="anchor" id="gad3e8a8107cfda29dbae45fc5166d63f3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t DSPI_MasterGetTxRegisterAddress </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the DSPI master PUSHR data register address for the DMA operation. </p>
<p>This function gets the DSPI master PUSHR data register address because this value is needed for the DMA operation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The DSPI master PUSHR data register address. </dd></dl>

</div>
</div>
<a class="anchor" id="gaadf23f732f4c1b61d6634bd17b1a36d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterInit </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__dspi__driver.html#structdspi__master__config__t">dspi_master_config_t</a> *&#160;</td>
          <td class="paramname"><em>masterConfig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>srcClock_Hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the DSPI master. </p>
<p>This function initializes the DSPI master configuration. An example use case is as follows: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dspi_master_config_t  masterConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;masterConfig.whichCtar                                = kDSPI_Ctar0;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;masterConfig.ctarConfig.baudRate                      = 500000000;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;masterConfig.ctarConfig.bitsPerFrame                  = 8;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;masterConfig.ctarConfig.cpol                          = kDSPI_ClockPolarityActiveHigh;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;masterConfig.ctarConfig.cpha                          = kDSPI_ClockPhaseFirstEdge;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;masterConfig.ctarConfig.direction                     = kDSPI_MsbFirst;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;masterConfig.ctarConfig.pcsToSckDelayInNanoSec        = 1000000000 / masterConfig.ctarConfig.baudRate ;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;masterConfig.ctarConfig.lastSckToPcsDelayInNanoSec    = 1000000000 / masterConfig.ctarConfig.baudRate ;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;masterConfig.ctarConfig.betweenTransferDelayInNanoSec = 1000000000 / masterConfig.ctarConfig.baudRate ;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;masterConfig.whichPcs                                 = kDSPI_Pcs0;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;masterConfig.pcsActiveHighOrLow                       = kDSPI_PcsActiveLow;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;masterConfig.enableContinuousSCK                      = false;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;masterConfig.enableRxFifoOverWrite                    = false;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;masterConfig.enableModifiedTimingFormat               = false;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;masterConfig.samplePoint                              = kDSPI_SckToSin0Clock;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;DSPI_MasterInit(base, &amp;masterConfig, srcClock_Hz);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">masterConfig</td><td>Pointer to structure <a class="el" href="group__dspi__driver.html#structdspi__master__config__t" title="DSPI master config structure. ">dspi_master_config_t</a>. </td></tr>
    <tr><td class="paramname">srcClock_Hz</td><td>Module source input clock in Hertz </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac76cf793dd837dd0b502770913058592"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t DSPI_MasterSetBaudRate </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a>&#160;</td>
          <td class="paramname"><em>whichCtar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>baudRate_Bps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>srcClock_Hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the DSPI baud rate in bits per second. </p>
<p>This function takes in the desired baudRate_Bps (baud rate) and calculates the nearest possible baud rate without exceeding the desired baud rate, and returns the calculated baud rate in bits-per-second. It requires that the caller also provide the frequency of the module source clock (in Hertz).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">whichCtar</td><td>The desired Clock and Transfer Attributes Register (CTAR) of the type dspi_ctar_selection_t </td></tr>
    <tr><td class="paramname">baudRate_Bps</td><td>The desired baud rate in bits per second </td></tr>
    <tr><td class="paramname">srcClock_Hz</td><td>Module source input clock in Hertz </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The actual calculated baud rate </dd></dl>

</div>
</div>
<a class="anchor" id="ga56d5b87114e56507c0ec2d631ffefaa2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterSetDelayScaler </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a>&#160;</td>
          <td class="paramname"><em>whichCtar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>prescaler</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>scaler</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#ga1ca2fbee37b3cb046c075a7e765d64ed">dspi_delay_type_t</a>&#160;</td>
          <td class="paramname"><em>whichDelay</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Manually configures the delay prescaler and scaler for a particular CTAR. </p>
<p>This function configures the PCS to SCK delay pre-scalar (PcsSCK) and scalar (CSSCK), after SCK delay pre-scalar (PASC) and scalar (ASC), and the delay after transfer pre-scalar (PDT)and scalar (DT).</p>
<p>These delay names are available in type dspi_delay_type_t.</p>
<p>The user passes the delay to configure along with the prescaler and scaler value. This allows the user to directly set the prescaler/scaler values if they have pre-calculated them or if they simply wish to manually increment either value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">whichCtar</td><td>The desired Clock and Transfer Attributes Register (CTAR) of type dspi_ctar_selection_t. </td></tr>
    <tr><td class="paramname">prescaler</td><td>The prescaler delay value (can be an integer 0, 1, 2, or 3). </td></tr>
    <tr><td class="paramname">scaler</td><td>The scaler delay value (can be any integer between 0 to 15). </td></tr>
    <tr><td class="paramname">whichDelay</td><td>The desired delay to configure, must be of type dspi_delay_type_t </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac60f64fd410404ebab553ee878b464c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t DSPI_MasterSetDelayTimes </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#ga992d5562af4cf4c45371feb8c5c1a1bf">dspi_ctar_selection_t</a>&#160;</td>
          <td class="paramname"><em>whichCtar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#ga1ca2fbee37b3cb046c075a7e765d64ed">dspi_delay_type_t</a>&#160;</td>
          <td class="paramname"><em>whichDelay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>srcClock_Hz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>delayTimeInNanoSec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calculates the delay prescaler and scaler based on the desired delay input in nanoseconds. </p>
<p>This function calculates the values for: PCS to SCK delay pre-scalar (PCSSCK) and scalar (CSSCK), or After SCK delay pre-scalar (PASC) and scalar (ASC), or Delay after transfer pre-scalar (PDT)and scalar (DT).</p>
<p>These delay names are available in type dspi_delay_type_t.</p>
<p>The user passes which delay they want to configure along with the desired delay value in nanoseconds. The function calculates the values needed for the prescaler and scaler and returning the actual calculated delay as an exact delay match may not be possible. In this case, the closest match is calculated without going below the desired delay value input. It is possible to input a very large delay value that exceeds the capability of the part, in which case the maximum supported delay is returned. The higher level peripheral driver alerts the user of an out of range delay input.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">whichCtar</td><td>The desired Clock and Transfer Attributes Register (CTAR) of type dspi_ctar_selection_t. </td></tr>
    <tr><td class="paramname">whichDelay</td><td>The desired delay to configure, must be of type dspi_delay_type_t </td></tr>
    <tr><td class="paramname">srcClock_Hz</td><td>Module source input clock in Hertz </td></tr>
    <tr><td class="paramname">delayTimeInNanoSec</td><td>The desired delay value in nanoseconds. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The actual calculated delay value. </dd></dl>

</div>
</div>
<a class="anchor" id="ga80633e998c10cb83685d6c64ecd33a55"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterTransferAbort </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI master aborts transfer using an interrupt. </p>
<p>This function aborts a transfer using an interrupt.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_master_handle_t structure which stores the transfer state. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gab2d0aa3acb2acc3cc5413314d758628b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> DSPI_MasterTransferBlocking </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__transfer__t">dspi_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>transfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI master transfer data using polling. </p>
<p>This function transfers data with polling. This is a blocking function, which does not return until all transfers have been completed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">transfer</td><td>pointer to <a class="el" href="group__dspi__driver.html#structdspi__transfer__t" title="DSPI master/slave transfer structure. ">dspi_transfer_t</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status of status_t. </dd></dl>

</div>
</div>
<a class="anchor" id="ga63e04b92d99d795cf84df62379765a91"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterTransferCreateHandle </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#ga67d91a817bd68468037b7886ea710ffa">dspi_master_transfer_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the DSPI master handle. </p>
<p>This function initializes the DSPI handle which can be used for other DSPI transactional APIs. Usually, for a specified DSPI instance, call this API once to get the initialized handle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>DSPI handle pointer to dspi_master_handle_t. </td></tr>
    <tr><td class="paramname">callback</td><td>dspi callback. </td></tr>
    <tr><td class="paramname">userData</td><td>callback function parameter. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gadaf98a7213c03f10d5820d363e827a73"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> DSPI_MasterTransferGetCount </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the master transfer count. </p>
<p>This function gets the master transfer count.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_master_handle_t structure which stores the transfer state. </td></tr>
    <tr><td class="paramname">count</td><td>Number of bytes transferred so far by the non-blocking transaction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status of status_t. </dd></dl>

</div>
</div>
<a class="anchor" id="ga195eed1bfdc0d21e7adb76a5d6d247dc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterTransferHandleIRQ </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI Master IRQ handler function. </p>
<p>This function processes the DSPI transmit and receive IRQ.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_master_handle_t structure which stores the transfer state. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad3dc7b85b448ce6e16e227d7bf3769d6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> DSPI_MasterTransferNonBlocking </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__transfer__t">dspi_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>transfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI master transfer data using interrupts. </p>
<p>This function transfers data using interrupts. This is a non-blocking function, which returns right away. When all data have been transferred, the callback function is called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_master_handle_t structure which stores the transfer state. </td></tr>
    <tr><td class="paramname">transfer</td><td>pointer to <a class="el" href="group__dspi__driver.html#structdspi__transfer__t" title="DSPI master/slave transfer structure. ">dspi_transfer_t</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status of status_t. </dd></dl>

</div>
</div>
<a class="anchor" id="ga0718581088422b572cb4494f26aad1f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterWriteCommandDataBlocking </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes a 32-bit data word (16-bit command appended with 16-bit data) into the data buffer, master mode and waits till complete to return. </p>
<p>In this function, the user must append the 16-bit data to the 16-bit command info then provide the total 32-bit word as the data to send. The command portion provides characteristics of the data such as the optional continuous chip select operation between transfers, the desired Clock and Transfer Attributes register to use for the associated SPI frame, the desired PCS signal to use for the data transfer, whether the current transfer is the last in the queue, and whether to clear the transfer count (normally needed when sending the first frame of a data packet). The user is responsible for appending this command with the data to send. This is an example: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dataWord = &lt;16-bit command&gt; | &lt;16-bit data&gt;;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;DSPI_HAL_WriteCommandDataMastermodeBlocking(base, dataWord);</div></div><!-- fragment --><p>Note that this function does not return until after the transmit is complete. Also note that the DSPI must be enabled and running to transmit data (MCR[MDIS] &amp; [HALT] = 0). Because the SPI is a synchronous protocol, the receive data is available when transmit completes.</p>
<p>For a blocking polling transfer, see methods below. Option 1: uint32_t command_to_send = DSPI_MasterGetFormattedCommand(&amp;command); uint32_t data0 = command_to_send | data_need_to_send_0; uint32_t data1 = command_to_send | data_need_to_send_1; uint32_t data2 = command_to_send | data_need_to_send_2;</p>
<p>DSPI_MasterWriteCommandDataBlocking(base,data0); DSPI_MasterWriteCommandDataBlocking(base,data1); DSPI_MasterWriteCommandDataBlocking(base,data2);</p>
<p>Option 2: DSPI_MasterWriteDataBlocking(base,&amp;command,data_need_to_send_0); DSPI_MasterWriteDataBlocking(base,&amp;command,data_need_to_send_1); DSPI_MasterWriteDataBlocking(base,&amp;command,data_need_to_send_2);</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">data</td><td>The data word (command and data combined) to be sent </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gabe0d615b273c4cb0eaf26d9679b73ad6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_MasterWriteData </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Writes data into the data buffer for master mode. </p>
<p>In master mode, the 16-bit data is appended to the 16-bit command info. The command portion provides characteristics of the data such as the optional continuous chip select operation between transfers, the desired Clock and Transfer Attributes register to use for the associated SPI frame, the desired PCS signal to use for the data transfer, whether the current transfer is the last in the queue, and whether to clear the transfer count (normally needed when sending the first frame of a data packet). This is an example: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dspi_command_data_config_t commandConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;commandConfig.isPcsContinuous = true;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;commandConfig.whichCtar = kDSPICtar0;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;commandConfig.whichPcs = kDSPIPcs0;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;commandConfig.clearTransferCount = false;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;commandConfig.isEndOfQueue = false;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;DSPI_MasterWriteData(base, &amp;commandConfig, dataWord);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">command</td><td>Pointer to command structure. </td></tr>
    <tr><td class="paramname">data</td><td>The data word to be sent. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga70a0f7d7fe2fbce7993bbcc8c427b2b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_MasterWriteDataBlocking </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__command__data__config__t">dspi_command_data_config_t</a> *&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes data into the data buffer master mode and waits till complete to return. </p>
<p>In master mode, the 16-bit data is appended to the 16-bit command info. The command portion provides characteristics of the data such as the optional continuous chip select operation between transfers, the desired Clock and Transfer Attributes register to use for the associated SPI frame, the desired PCS signal to use for the data transfer, whether the current transfer is the last in the queue, and whether to clear the transfer count (normally needed when sending the first frame of a data packet). This is an example: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dspi_command_config_t commandConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;commandConfig.isPcsContinuous = true;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;commandConfig.whichCtar = kDSPICtar0;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;commandConfig.whichPcs = kDSPIPcs1;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;commandConfig.clearTransferCount = false;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;commandConfig.isEndOfQueue = false;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;DSPI_MasterWriteDataBlocking(base, &amp;commandConfig, dataWord);</div></div><!-- fragment --><p>Note that this function does not return until after the transmit is complete. Also note that the DSPI must be enabled and running to transmit data (MCR[MDIS] &amp; [HALT] = 0). Because the SPI is a synchronous protocol, receive data is available when transmit completes.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">command</td><td>Pointer to command structure. </td></tr>
    <tr><td class="paramname">data</td><td>The data word to be sent. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaee93673062a6fb105dcf1e0541dd8b52"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t DSPI_ReadData </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reads data from the data buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The data from the read data buffer. </dd></dl>

</div>
</div>
<a class="anchor" id="ga1c42d5efc75982041f4a66f4f1fc71a4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_SetAllPcsPolarity </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Configures the DSPI peripheral chip select polarity simultaneously. For example, PCS0 and PCS1 set to active low and other PCS set to active high. Note that the number of PCSs is specific to the device. </p>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;DSPI_SetAllPcsPolarity(base, kDSPI_Pcs0ActiveLow | kDSPI_Pcs1ActiveLow);</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">mask</td><td>The PCS polarity mask , can use the enum _dspi_pcs_polarity. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad9112153c575eeeb6af747d9e6396514"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_SetFifoEnable </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableTxFifo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableRxFifo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables (or disables) the DSPI FIFOs. </p>
<p>This function allows the caller to disable/enable the Tx and Rx FIFOs (independently). Note that to disable, the caller must pass in a logic 0 (false) for the particular FIFO configuration. To enable, the caller must pass in a logic 1 (true).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">enableTxFifo</td><td>Disables (false) the TX FIFO, else enables (true) the TX FIFO </td></tr>
    <tr><td class="paramname">enableRxFifo</td><td>Disables (false) the RX FIFO, else enables (true) the RX FIFO </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac3e11f3876e81d7636a77fb268c2365a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_SetMasterSlaveMode </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#gad7f974015f32db057dafada8b95641aa">dspi_master_slave_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Configures the DSPI for master or slave. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">mode</td><td>Mode setting (master or slave) of type dspi_master_slave_mode_t. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad85a8d4e7bd2747103691a63ef9a67e1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_SlaveGetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__slave__config__t">dspi_slave_config_t</a> *&#160;</td>
          <td class="paramname"><em>slaveConfig</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the <a class="el" href="group__dspi__driver.html#structdspi__slave__config__t" title="DSPI slave configuration structure. ">dspi_slave_config_t</a> structure to default values. </p>
<p>The purpose of this API is to get the configuration structure initialized for the <a class="el" href="group__dspi__driver.html#gacf6cecb6b73f02eaa448634a8d705851" title="DSPI slave configuration. ">DSPI_SlaveInit()</a>. User may use the initialized structure unchanged in <a class="el" href="group__dspi__driver.html#gacf6cecb6b73f02eaa448634a8d705851" title="DSPI slave configuration. ">DSPI_SlaveInit()</a>, or modify the structure before calling <a class="el" href="group__dspi__driver.html#gacf6cecb6b73f02eaa448634a8d705851" title="DSPI slave configuration. ">DSPI_SlaveInit()</a>. Example: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dspi_slave_config_t  slaveConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;DSPI_SlaveGetDefaultConfig(&amp;slaveConfig);</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slaveConfig</td><td>pointer to <a class="el" href="group__dspi__driver.html#structdspi__slave__config__t" title="DSPI slave configuration structure. ">dspi_slave_config_t</a> structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga8912754715dfadde5473a419f7b8ff93"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t DSPI_SlaveGetTxRegisterAddress </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the DSPI slave PUSHR data register address for the DMA operation. </p>
<p>This function gets the DSPI slave PUSHR data register address as this value is needed for the DMA operation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The DSPI slave PUSHR data register address. </dd></dl>

</div>
</div>
<a class="anchor" id="gacf6cecb6b73f02eaa448634a8d705851"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_SlaveInit </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__dspi__driver.html#structdspi__slave__config__t">dspi_slave_config_t</a> *&#160;</td>
          <td class="paramname"><em>slaveConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI slave configuration. </p>
<p>This function initializes the DSPI slave configuration. An example use case is as follows: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; dspi_slave_config_t  slaveConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;slaveConfig-&gt;whichCtar                  = kDSPI_Ctar0;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;slaveConfig-&gt;ctarConfig.bitsPerFrame    = 8;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;slaveConfig-&gt;ctarConfig.cpol            = kDSPI_ClockPolarityActiveHigh;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;slaveConfig-&gt;ctarConfig.cpha            = kDSPI_ClockPhaseFirstEdge;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;slaveConfig-&gt;enableContinuousSCK        = false;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;slaveConfig-&gt;enableRxFifoOverWrite      = false;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;slaveConfig-&gt;enableModifiedTimingFormat = false;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;slaveConfig-&gt;samplePoint                = kDSPI_SckToSin0Clock;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; DSPI_SlaveInit(base, &amp;slaveConfig);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">slaveConfig</td><td>Pointer to structure <a class="el" href="group__dspi__driver.html#structdspi__master__config__t" title="DSPI master config structure. ">dspi_master_config_t</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga7e1be1f74fd8d372ce1af52c960d1361"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_SlaveTransferAbort </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_slave_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI slave aborts a transfer using an interrupt. </p>
<p>This function aborts transfer using an interrupt.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_slave_handle_t structure which stores the transfer state. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gadc23691aa2c06ae9076a5f0b16f33a8c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_SlaveTransferCreateHandle </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_slave_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#gaf928cd95fbb7eb5d5f306c9a4d4afce4">dspi_slave_transfer_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the DSPI slave handle. </p>
<p>This function initializes the DSPI handle, which can be used for other DSPI transactional APIs. Usually, for a specified DSPI instance, call this API once to get the initialized handle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>DSPI handle pointer to dspi_slave_handle_t. </td></tr>
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">callback</td><td>DSPI callback. </td></tr>
    <tr><td class="paramname">userData</td><td>callback function parameter. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4134bb536420951e8ecbe8edb987d199"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> DSPI_SlaveTransferGetCount </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_slave_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the slave transfer count. </p>
<p>This function gets the slave transfer count.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_master_handle_t structure which stores the transfer state. </td></tr>
    <tr><td class="paramname">count</td><td>Number of bytes transferred so far by the non-blocking transaction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status of status_t. </dd></dl>

</div>
</div>
<a class="anchor" id="gade8288c503cc6c7af542cdc86947ecd3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_SlaveTransferHandleIRQ </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_slave_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI Master IRQ handler function. </p>
<p>This function processes the DSPI transmit and receive IRQ.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_slave_handle_t structure which stores the transfer state. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga81f85324750f75b8e7248846c88d99e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> DSPI_SlaveTransferNonBlocking </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dspi_slave_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__dspi__driver.html#structdspi__transfer__t">dspi_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>transfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DSPI slave transfers data using an interrupt. </p>
<p>This function transfers data using an interrupt. This is a non-blocking function, which returns right away. When all data have been transferred, the callback function is called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>pointer to dspi_slave_handle_t structure which stores the transfer state. </td></tr>
    <tr><td class="paramname">transfer</td><td>pointer to <a class="el" href="group__dspi__driver.html#structdspi__transfer__t" title="DSPI master/slave transfer structure. ">dspi_transfer_t</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status of status_t. </dd></dl>

</div>
</div>
<a class="anchor" id="ga952c2bfcb7e3ac7d3608ec16add273dc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_SlaveWriteData </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Writes data into the data buffer in slave mode. </p>
<p>In slave mode, up to 16-bit words may be written.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">data</td><td>The data to send. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad7a98ccdb5dcd3ea9c282893b79cee79"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DSPI_SlaveWriteDataBlocking </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes data into the data buffer in slave mode, waits till data was transmitted, and returns. </p>
<p>In slave mode, up to 16-bit words may be written. The function first clears the transmit complete flag, writes data into data register, and finally waits until the data is transmitted.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
    <tr><td class="paramname">data</td><td>The data to send. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac3fb40ea05b407f5b335c0a47330e3a8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_StartTransfer </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Starts the DSPI transfers and clears HALT bit in MCR. </p>
<p>This function sets the module to begin data transfer in either master or slave mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga09021ebd27d4ccf5d85398b5bbf12045"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DSPI_StopTransfer </td>
          <td>(</td>
          <td class="paramtype">SPI_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stops (halts) DSPI transfers and sets HALT bit in MCR. </p>
<p>This function stops data transfers in either master or slave mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>DSPI peripheral address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
